Class: CqlRuby::SourceReader

Inherits:
Struct
  • Object
show all
Defined in:
lib/cql_ruby/executor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ SourceReader

Returns a new instance of SourceReader.



127
128
129
# File 'lib/cql_ruby/executor.rb', line 127

def initialize(*args)
  super
end

Instance Attribute Details

#fileObject

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



126
127
128
# File 'lib/cql_ruby/executor.rb', line 126

def file
  @file
end

Instance Method Details

#source_line(n) ⇒ Object



131
132
133
# File 'lib/cql_ruby/executor.rb', line 131

def source_line(n)
  lines[n - 1].chop
end