Class: XSDInteger

Inherits:
Integer
  • Object
show all
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

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