Class: XPath::Literal

Inherits:
Object
  • Object
show all
Defined in:
lib/xpath/literal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Literal

Returns a new instance of Literal.



4
5
6
# File 'lib/xpath/literal.rb', line 4

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



3
4
5
# File 'lib/xpath/literal.rb', line 3

def value
  @value
end