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.
170 171 172 173 174 |
# File 'lib/activefacts/cql/parser.rb', line 170 def initialize(input, context, parser) @input = input @context = context @parser = parser end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
168 169 170 |
# File 'lib/activefacts/cql/parser.rb', line 168 def context @context end |
#parser ⇒ Object (readonly)
Returns the value of attribute parser.
168 169 170 |
# File 'lib/activefacts/cql/parser.rb', line 168 def parser @parser end |
Instance Method Details
#[](*a) ⇒ Object
184 185 186 |
# File 'lib/activefacts/cql/parser.rb', line 184 def [](*a) @input[*a] end |
#column_of(x) ⇒ Object
196 197 198 |
# File 'lib/activefacts/cql/parser.rb', line 196 def column_of(x) @input.column_of(x) end |
#index(*a) ⇒ Object
188 189 190 |
# File 'lib/activefacts/cql/parser.rb', line 188 def index(*a) @input.index(*a) end |
#length ⇒ Object
176 177 178 |
# File 'lib/activefacts/cql/parser.rb', line 176 def length @input.length end |
#line_of(x) ⇒ Object
192 193 194 |
# File 'lib/activefacts/cql/parser.rb', line 192 def line_of(x) @input.line_of(x) end |
#size ⇒ Object
180 181 182 |
# File 'lib/activefacts/cql/parser.rb', line 180 def size length end |