Sha256: 7dd56b7db339c2ddf7793e2b4ea2c101d038200637eb123f7906d1f540cadcee
Contents?: true
Size: 391 Bytes
Versions: 3
Compression:
Stored size: 391 Bytes
Contents
require_relative 'world_object' module Woyo class Item < WorldObject def initialize_object super end def location self.context.instance_of?( Location ) ? self.context : nil end def world case when self.context.instance_of?( World ) then self.context when self.context.instance_of?( Location) then self.context.world else nil end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
woyo-world-0.0.9 | lib/woyo/world/item.rb |
woyo-world-0.0.8 | lib/woyo/world/item.rb |
woyo-world-0.0.7 | lib/woyo/world/item.rb |