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.



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

#contextObject (readonly)

Returns the value of attribute context.



168
169
170
# File 'lib/activefacts/cql/parser.rb', line 168

def context
  @context
end

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

#lengthObject



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

#sizeObject



180
181
182
# File 'lib/activefacts/cql/parser.rb', line 180

def size
  length
end