Class: ActiveFacts::CQL::Parser::InputProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/activefacts/cql/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contextObject (readonly)

Returns the value of attribute context.



204
205
206
# File 'lib/activefacts/cql/parser.rb', line 204

def context
  @context
end

#parserObject (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

#lengthObject



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

#sizeObject



216
217
218
# File 'lib/activefacts/cql/parser.rb', line 216

def size
  length
end