Class: JPath::Parser::Root
Instance Attribute Summary
Attributes inherited from Step
Instance Method Summary collapse
- #from(item, context) ⇒ Object
-
#initialize ⇒ Root
constructor
A new instance of Root.
- #to_s ⇒ Object
Methods inherited from Step
#+, #<<, #wildcard?
Constructor Details
#initialize ⇒ Root
Returns a new instance of Root.
44 45 46 |
# File 'lib/jpath/parser/step.rb', line 44 def initialize super(nil) end |
Instance Method Details
#from(item, context) ⇒ Object
48 49 50 |
# File 'lib/jpath/parser/step.rb', line 48 def from(item, context) [context] end |
#to_s ⇒ Object
52 53 54 |
# File 'lib/jpath/parser/step.rb', line 52 def to_s "" end |