Class: XSDFloat
- Inherits:
-
Float
- Object
- Float
- XSDFloat
- Defined in:
- lib/rxsd/builtin_types.rb
Overview
Since we can’t create new instances of Float subclasses, we use the delegate module. codeidol.com/other/rubyckbk/Numbers/Simulating-a-Subclass-of-Fixnum/
Class Method Summary collapse
-
.from_s(str) ⇒ Object
Convert string to float and return.
Class Method Details
.from_s(str) ⇒ Object
Convert string to float and return
84 85 86 |
# File 'lib/rxsd/builtin_types.rb', line 84 def self.from_s(str) str.to_f end |