Class: Rubyang::Xpath::BasicType::String
- Inherits:
-
Object
- Object
- Rubyang::Xpath::BasicType::String
- Defined in:
- lib/rubyang/xpath.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #!=(right) ⇒ Object
- #==(right) ⇒ Object
-
#initialize(value) ⇒ String
constructor
A new instance of String.
- #to_boolean ⇒ Object
Constructor Details
#initialize(value) ⇒ String
Returns a new instance of String.
174 175 176 |
# File 'lib/rubyang/xpath.rb', line 174 def initialize value @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
173 174 175 |
# File 'lib/rubyang/xpath.rb', line 173 def value @value end |
Instance Method Details
#!=(right) ⇒ Object
193 194 195 196 197 198 199 200 201 |
# File 'lib/rubyang/xpath.rb', line 193 def != right case right when String value = (@value != right.value) Boolean.new value else raise end end |