Class: Ngannotate::Processor
- Inherits:
-
Sprockets::Processor
- Object
- Sprockets::Processor
- Ngannotate::Processor
show all
- Includes:
- ProcessorCommon
- Defined in:
- lib/ngannotate/processor.rb,
lib/ngannotate/processor3.rb
Class Method Summary
collapse
Instance Method Summary
collapse
#config, #exec_context, #ignore_file?, included, #logger, #match_input, #need_process?, #parse_ngannotate_options, #process_data, #process_file?
Class Method Details
.call(input) ⇒ Object
12
13
14
|
# File 'lib/ngannotate/processor3.rb', line 12
def self.call(input)
instance.call(input)
end
|
.instance ⇒ Object
8
9
10
|
# File 'lib/ngannotate/processor3.rb', line 8
def self.instance
@instance ||= new
end
|
Instance Method Details
#call(input) ⇒ Object
16
17
18
|
# File 'lib/ngannotate/processor3.rb', line 16
def call(input)
process_data(input)
end
|
#evaluate(context, locals) ⇒ Object
9
10
11
12
13
14
15
|
# File 'lib/ngannotate/processor.rb', line 9
def evaluate(context, locals)
input = {
filename: @file,
data: data,
}
process_data(input)
end
|