Class: CqlRuby::SourceReader
- Inherits:
-
Struct
- Object
- Struct
- CqlRuby::SourceReader
- Defined in:
- lib/cql_ruby/executor.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
Instance Method Summary collapse
-
#initialize(*args) ⇒ SourceReader
constructor
A new instance of SourceReader.
- #source_line(n) ⇒ Object
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
#file ⇒ Object
Returns the value of attribute 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 |