Class: SeparatedValues::Parser
- Inherits:
-
Object
- Object
- SeparatedValues::Parser
- Defined in:
- lib/separated_values/parser.rb
Instance Attribute Summary collapse
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(file_path, options = DEFAULT_OPTIONS) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(file_path, options = DEFAULT_OPTIONS) ⇒ Parser
Returns a new instance of Parser.
8 9 10 11 |
# File 'lib/separated_values/parser.rb', line 8 def initialize(file_path, = DEFAULT_OPTIONS) @file_path = file_path @options = end |
Instance Attribute Details
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
6 7 8 |
# File 'lib/separated_values/parser.rb', line 6 def file_path @file_path end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/separated_values/parser.rb', line 6 def @options end |