Class: ThemeCheck::JsonFile
Instance Method Summary
collapse
Methods inherited from ThemeFile
#==, #liquid?, #name, #path, #relative_path, #source
Constructor Details
#initialize(relative_path, storage) ⇒ JsonFile
Returns a new instance of JsonFile.
6
7
8
9
10
11
|
# File 'lib/theme_check/json_file.rb', line 6
def initialize(relative_path, storage)
super
@loaded = false
@content = nil
@parser_error = nil
end
|
Instance Method Details
#content ⇒ Object
13
14
15
16
|
# File 'lib/theme_check/json_file.rb', line 13
def content
load!
@content
end
|
#json? ⇒ Boolean
23
24
25
|
# File 'lib/theme_check/json_file.rb', line 23
def json?
true
end
|
#parse_error ⇒ Object
18
19
20
21
|
# File 'lib/theme_check/json_file.rb', line 18
def parse_error
load!
@parser_error
end
|