Class: Wiris::Type
- Inherits:
-
Object
- Object
- Wiris::Type
- Defined in:
- lib/src-generic/Type.rb
Class Method Summary collapse
Class Method Details
.createInstance(cls, args) ⇒ Object
15 16 17 |
# File 'lib/src-generic/Type.rb', line 15 def self.createInstance(cls, args) return cls.new() end |
.getClass(o) ⇒ Object
11 12 13 |
# File 'lib/src-generic/Type.rb', line 11 def self.getClass(o) return o.class.name end |
.resolveClass(name) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/src-generic/Type.rb', line 3 def self.resolveClass(name) name = name.to_s name = name.split(".").last return Object.const_get("Wiris::" + name) rescue Exception => exc return nil end |