Class: ActiveFacts::CQL::Parser::InputProxy
- Inherits:
-
Object
- Object
- ActiveFacts::CQL::Parser::InputProxy
- Defined in:
- lib/activefacts/cql/parser.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
- #[](*a) ⇒ Object
- #column_of(x) ⇒ Object
- #index(*a) ⇒ Object
-
#initialize(input, context) ⇒ InputProxy
constructor
A new instance of InputProxy.
- #length ⇒ Object
- #line_of(x) ⇒ Object
- #size ⇒ Object
Constructor Details
#initialize(input, context) ⇒ InputProxy
Returns a new instance of InputProxy.
155 156 157 158 |
# File 'lib/activefacts/cql/parser.rb', line 155 def initialize(input, context) @input = input @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
153 154 155 |
# File 'lib/activefacts/cql/parser.rb', line 153 def context @context end |
Instance Method Details
#[](*a) ⇒ Object
168 169 170 |
# File 'lib/activefacts/cql/parser.rb', line 168 def [](*a) @input[*a] end |
#column_of(x) ⇒ Object
180 181 182 |
# File 'lib/activefacts/cql/parser.rb', line 180 def column_of(x) @input.column_of(x) end |
#index(*a) ⇒ Object
172 173 174 |
# File 'lib/activefacts/cql/parser.rb', line 172 def index(*a) @input.index(*a) end |
#length ⇒ Object
160 161 162 |
# File 'lib/activefacts/cql/parser.rb', line 160 def length @input.length end |
#line_of(x) ⇒ Object
176 177 178 |
# File 'lib/activefacts/cql/parser.rb', line 176 def line_of(x) @input.line_of(x) end |
#size ⇒ Object
164 165 166 |
# File 'lib/activefacts/cql/parser.rb', line 164 def size length end |