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.



309
310
311
# File 'lib/rexle.rb', line 309

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly) Also known as: to_s

Returns the value of attribute value.



307
308
309
# File 'lib/rexle.rb', line 307

def value
  @value
end

Instance Method Details

#to_fObject



313
314
315
# File 'lib/rexle.rb', line 313

def to_f()
  @value.to_f
end

#to_iObject



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

def to_i()
  @value.to_i
end