class Mint::MintJson::Parser

Included Modules

Extended Modules

Defined in:

mint_json/application.cr
mint_json/application/css_prefix.cr
mint_json/application/display.cr
mint_json/application/head.cr
mint_json/application/icon.cr
mint_json/application/meta.cr
mint_json/application/name.cr
mint_json/application/orientation.cr
mint_json/application/theme_color.cr
mint_json/application/title.cr
mint_json/dependencies.cr
mint_json/formatter.cr
mint_json/mint_version.cr
mint_json/name.cr
mint_json/parser.cr
mint_json/root.cr
mint_json/source_directories.cr
mint_json/test_directories.cr

Constant Summary

DISPLAY_VALUES = ["fullscreen", "standalone", "minimal-ui", "browser"] of ::String
ORIENTATION_VALUES = ["any", "natural", "landscape", "landscape-primary", "landscape-secondary", "portrait", "portrait-primary", "portrait-secondary"] of ::String

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Mint::Errorable

error!(name : Symbol, &) error!, unreachable!(message : String) unreachable!

Constructor Detail

def self.new(*, contents : String, path : String) #

[View source]

Class Method Detail

def self.parse(path : String, *, search : Bool = false) : MintJson #

[View source]
def self.parse(*, contents : String, path : String) : MintJson #

[View source]
def self.snippet_data(*, column_number : Int32, line_number : Int32, contents : String, path : String) #

[View source]

Instance Method Detail

def parse : MintJson #

[View source]
def parse_application : Application #

[View source]
def parse_application_css_prefix : String #

[View source]
def parse_application_display : String #

[View source]
def parse_application_head : String #

[View source]
def parse_application_icon : String #

[View source]
def parse_application_meta : Hash(String, String) #

[View source]
def parse_application_meta_keyword : String #

[View source]
def parse_application_meta_keywords : String #

[View source]
def parse_application_meta_value : String #

[View source]
def parse_application_name : String #

[View source]
def parse_application_orientation : String #

[View source]
def parse_application_theme_color : String #

[View source]
def parse_application_title : String #

[View source]
def parse_dependencies : Array(Installer::Dependency) #

[View source]
def parse_dependency(package : String) : Installer::Dependency #

[View source]
def parse_dependency_constraint : Installer::Constraint #

[View source]
def parse_dependency_repository : String #

[View source]
def parse_formatter : Formatter::Config #

[View source]
def parse_formatter_indent_size : Int32 #

[View source]
def parse_mint_version : Nil #

[View source]
def parse_name : String #

[View source]
def parse_source_directories : Array(String) #

[View source]
def parse_source_directory : String #

[View source]
def parse_test_directories : Array(String) #

[View source]
def parse_test_directory : String #

[View source]
def root #

This is used for checking directories and files.


[View source]
def snippet_data(location : Tuple(Int32, Int32)) #

[View source]
def snippet_data #

[View source]