Class: String

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

Instance Method Summary collapse

Instance Method Details

#iterableObject



135
136
137
# File 'lib/rtiss_libxml_to_hash.rb', line 135

def iterable
  [self]
end

#to_bObject



139
140
141
# File 'lib/rtiss_libxml_to_hash.rb', line 139

def to_b
  self.upcase == 'TRUE' or self == '1'
end

#to_libxmlnodeObject



143
144
145
# File 'lib/rtiss_libxml_to_hash.rb', line 143

def to_libxmlnode
  LibXmlNode.create({}, {}, self)
end