Sha256: b9407e04ba7842e928ced0d715c94b321d1d727ecd28689e9fa91fc91bd8c7ea
Contents?: true
Size: 232 Bytes
Versions: 2
Compression:
Stored size: 232 Bytes
Contents
# An Attachable can be attached to a Pod. # module Attachable extend Trait attr_accessor :relative_position def move_relative pod self.position = pod.relative_position self self.rotation = pod.rotation end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gosu_extensions-0.1.26 | lib/traits/attachable.rb |
gosu_extensions-0.1.25 | lib/traits/attachable.rb |