Class: Row
- Inherits:
-
Object
- Object
- Row
- Defined in:
- lib/kaba/row.rb
Instance Attribute Summary collapse
-
#input_file ⇒ Object
readonly
Returns the value of attribute input_file.
-
#target_path ⇒ Object
readonly
Returns the value of attribute target_path.
Instance Method Summary collapse
-
#initialize(file) ⇒ Row
constructor
A new instance of Row.
Constructor Details
#initialize(file) ⇒ Row
Returns a new instance of Row.
3 4 5 6 |
# File 'lib/kaba/row.rb', line 3 def initialize(file) @target_path = File.(file) @input_file = @target_path.sub(/\.target\.json$/, '.input.txt') end |
Instance Attribute Details
#input_file ⇒ Object (readonly)
Returns the value of attribute input_file.
2 3 4 |
# File 'lib/kaba/row.rb', line 2 def input_file @input_file end |
#target_path ⇒ Object (readonly)
Returns the value of attribute target_path.
2 3 4 |
# File 'lib/kaba/row.rb', line 2 def target_path @target_path end |