Class: JPath::Parser::Root

Inherits:
Step
  • Object
show all
Defined in:
lib/jpath/parser/step.rb

Instance Attribute Summary

Attributes inherited from Step

#name, #predicates

Instance Method Summary collapse

Methods inherited from Step

#+, #<<, #wildcard?

Constructor Details

#initializeRoot

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_sObject



52
53
54
# File 'lib/jpath/parser/step.rb', line 52

def to_s
  ""
end