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.
-
#parser ⇒ Object
readonly
Returns the value of attribute parser.
Instance Method Summary collapse
- #[](*a) ⇒ Object
- #column_of(x) ⇒ Object
- #index(*a) ⇒ Object
-
#initialize(input, context, parser) ⇒ InputProxy
constructor
A new instance of InputProxy.
- #length ⇒ Object
- #line_of(x) ⇒ Object
- #size ⇒ Object
Constructor Details
#initialize(input, context, parser) ⇒ InputProxy
Returns a new instance of InputProxy.
206 207 208 209 210 |
# File 'lib/activefacts/cql/parser.rb', line 206 def initialize(input, context, parser) @input = input @context = context @parser = parser end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
204 205 206 |
# File 'lib/activefacts/cql/parser.rb', line 204 def context @context end |
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
204 205 206 |
# File 'lib/activefacts/cql/parser.rb', line 204 def parser @parser end |
Instance Method Details
#[](*a) ⇒ Object
220 221 222 |
# File 'lib/activefacts/cql/parser.rb', line 220 def [](*a) @input[*a] end |
#column_of(x) ⇒ Object
232 233 234 |
# File 'lib/activefacts/cql/parser.rb', line 232 def column_of(x) @input.column_of(x) end |
#index(*a) ⇒ Object
224 225 226 |
# File 'lib/activefacts/cql/parser.rb', line 224 def index(*a) @input.index(*a) end |
#length ⇒ Object
212 213 214 |
# File 'lib/activefacts/cql/parser.rb', line 212 def length @input.length end |
#line_of(x) ⇒ Object
228 229 230 |
# File 'lib/activefacts/cql/parser.rb', line 228 def line_of(x) @input.line_of(x) end |
#size ⇒ Object
216 217 218 |
# File 'lib/activefacts/cql/parser.rb', line 216 def size length end |