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) ⇒ 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

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

#lengthObject



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

#sizeObject



164
165
166
# File 'lib/activefacts/cql/parser.rb', line 164

def size
  length
end