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.
141 142 143 |
# File 'lib/cql_ruby/executor.rb', line 141 def initialize(*args) super end |
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file
140 141 142 |
# File 'lib/cql_ruby/executor.rb', line 140 def file @file end |
Instance Method Details
#source_line(n) ⇒ Object
145 146 147 148 149 |
# File 'lib/cql_ruby/executor.rb', line 145 def source_line(n) return nil unless lines.size >= n lines[n - 1].chop end |