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.



282
283
284
# File 'lib/rexle.rb', line 282

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly) Also known as: to_s

Returns the value of attribute value.



280
281
282
# File 'lib/rexle.rb', line 280

def value
  @value
end

Instance Method Details

#to_fObject



286
287
288
# File 'lib/rexle.rb', line 286

def to_f()
  @value.to_f
end

#to_iObject



290
291
292
# File 'lib/rexle.rb', line 290

def to_i()
  @value.to_i
end