Class: Rexle::Element::Attribute

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Attribute

Returns a new instance of Attribute.



294
295
296
# File 'lib/rexle.rb', line 294

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly) Also known as: to_s

Returns the value of attribute value.



292
293
294
# File 'lib/rexle.rb', line 292

def value
  @value
end

Instance Method Details

#to_fObject



298
299
300
# File 'lib/rexle.rb', line 298

def to_f()
  @value.to_f
end

#to_iObject



302
303
304
# File 'lib/rexle.rb', line 302

def to_i()
  @value.to_i
end