Class: Row

Inherits:
Object
  • Object
show all
Defined in:
lib/kaba/row.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.expand_path(file)
  @input_file = @target_path.sub(/\.target\.json$/, '.input.txt')
end

Instance Attribute Details

#input_fileObject (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_pathObject (readonly)

Returns the value of attribute target_path.



2
3
4
# File 'lib/kaba/row.rb', line 2

def target_path
  @target_path
end