Method: Trainer::XCResult::TypeDefinition#initialize

Defined in:
trainer/lib/trainer/xcresult.rb

#initialize(data) ⇒ TypeDefinition

Returns a new instance of TypeDefinition.



304
305
306
307
308
# File 'trainer/lib/trainer/xcresult.rb', line 304

def initialize(data)
  self.name = fetch_value(data, "name")
  self.supertype = TypeDefinition.new(data["supertype"]) if data["supertype"]
  super
end