Sha256: 0b3ba41c5935eb4caa92142d20638b7bca4c7d7fe3f917762829847b210581a0
Contents?: true
Size: 608 Bytes
Versions: 3
Compression:
Stored size: 608 Bytes
Contents
class Car include Objection compose_with :engine, :brakes end class Engine include Objection singleton compose_with 'engine/crank_shaft', 'engine/rod' def shift(wat) puts "SHIFT!" end class CrankShaft end class Rod end end class V6Engine < Engine; end class Brakes def brake! end end class ABSBrakes < Brakes def abs_brake! end end class ViewController < NSObject include Objection initializer "initWithNibName:bundle:", "Home" attr_reader :name def initWithNibName(name, bundle: bundle) self.init self.tap do @name = name end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
motion-objection-0.6.1 | spec/helpers/objection_classes.rb |
motion-objection-0.6 | spec/helpers/objection_classes.rb |
motion-objection-0.5 | spec/helpers/objection_classes.rb |