Class: Acv2lrtemplate::Parser
Instance Attribute Summary collapse
-
#acv_file ⇒ Object
readonly
Returns the value of attribute acv_file.
-
#curver ⇒ Object
readonly
Returns the value of attribute curver.
-
#curves ⇒ Object
Returns the value of attribute curves.
Instance Method Summary collapse
-
#initialize(filename) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(filename) ⇒ Parser
Returns a new instance of Parser.
10 11 12 13 14 15 |
# File 'lib/acv2lrtemplate/parser.rb', line 10 def initialize(filename) raise Acv2lrtemplate::Errors::Validator::NoFileProvided if filename.blank? @acv_file = filename validate parse end |
Instance Attribute Details
#acv_file ⇒ Object (readonly)
Returns the value of attribute acv_file.
7 8 9 |
# File 'lib/acv2lrtemplate/parser.rb', line 7 def acv_file @acv_file end |
#curver ⇒ Object (readonly)
Returns the value of attribute curver.
7 8 9 |
# File 'lib/acv2lrtemplate/parser.rb', line 7 def curver @curver end |
#curves ⇒ Object
Returns the value of attribute curves.
8 9 10 |
# File 'lib/acv2lrtemplate/parser.rb', line 8 def curves @curves end |
Instance Method Details
#parse ⇒ Object
17 18 19 20 |
# File 'lib/acv2lrtemplate/parser.rb', line 17 def parse @curver = Curver.new(@acv_file) @curves = parse_channels end |