Class: JSONP3::FilterContext
- Inherits:
-
Object
- Object
- JSONP3::FilterContext
- Defined in:
- lib/json_p3/filter.rb
Overview
Contextual information and data used for evaluating a filter expression.
Instance Attribute Summary collapse
-
#current ⇒ Object
readonly
Returns the value of attribute current.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
-
#initialize(env, current, root) ⇒ FilterContext
constructor
A new instance of FilterContext.
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
#current ⇒ Object (readonly)
Returns the value of attribute current.
451 452 453 |
# File 'lib/json_p3/filter.rb', line 451 def current @current end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
451 452 453 |
# File 'lib/json_p3/filter.rb', line 451 def env @env end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
451 452 453 |
# File 'lib/json_p3/filter.rb', line 451 def root @root end |