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.



320
321
322
# File 'lib/rexle.rb', line 320

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly) Also known as: to_s

Returns the value of attribute value.



318
319
320
# File 'lib/rexle.rb', line 318

def value
  @value
end

Instance Method Details

#to_fObject



324
325
326
# File 'lib/rexle.rb', line 324

def to_f()
  @value.to_f
end

#to_iObject



328
329
330
# File 'lib/rexle.rb', line 328

def to_i()
  @value.to_i
end