Class: JSONP3::FilterContext

Inherits:
Object
  • Object
show all
Defined in:
lib/json_p3/filter.rb

Overview

Contextual information and data used for evaluating a filter expression.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env, current, root) ⇒ FilterContext

Returns a new instance of FilterContext.



453
454
455
456
457
# File 'lib/json_p3/filter.rb', line 453

def initialize(env, current, root)
  @env = env
  @current = current
  @root = root
end

Instance Attribute Details

#currentObject (readonly)

Returns the value of attribute current.



451
452
453
# File 'lib/json_p3/filter.rb', line 451

def current
  @current
end

#envObject (readonly)

Returns the value of attribute env.



451
452
453
# File 'lib/json_p3/filter.rb', line 451

def env
  @env
end

#rootObject (readonly)

Returns the value of attribute root.



451
452
453
# File 'lib/json_p3/filter.rb', line 451

def root
  @root
end