Class: XSDInteger
- Inherits:
-
Integer
- Object
- Integer
- XSDInteger
- Defined in:
- lib/rxsd/builtin_types.rb
Overview
Since we can’t create new instances of Integer 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 integer and return.
Class Method Details
.from_s(str) ⇒ Object
Convert string to integer and return
72 73 74 |
# File 'lib/rxsd/builtin_types.rb', line 72 def self.from_s(str) str.to_i end |