Class: XPath::Literal
- Inherits:
-
Object
- Object
- XPath::Literal
- Defined in:
- lib/xpath/literal.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Literal
constructor
A new instance of Literal.
Constructor Details
#initialize(value) ⇒ Literal
Returns a new instance of Literal.
6 7 8 |
# File 'lib/xpath/literal.rb', line 6 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/xpath/literal.rb', line 5 def value @value end |