Method: ZergXcode::XcodeObject.new
- Defined in:
- lib/zerg_xcode/objects/xcode_object.rb
.new(*args) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/zerg_xcode/objects/xcode_object.rb', line 36 def self.new(*args) return super unless self == ZergXcode::XcodeObject if hash_isa = args.first['isa'] hash_isa = hash_isa.to_sym classes = ZergXcode::Objects.constants.map(&:to_sym) if classes.include? hash_isa return ZergXcode::Objects.const_get(hash_isa).new(*args) end end super end |