Sha256: 40a5300bda014202131900b4f88a630220536162d0698fb9afd182db7418027d

Contents?: true

Size: 256 Bytes

Versions: 5

Compression:

Stored size: 256 Bytes

Contents

require_relative 'world_object'

module Woyo

class Location < WorldObject

  attributes :description, name: lambda { |this| this.id.to_s.capitalize }

  children   :way, :character

  def world
    self.context
  end

  def here
    self
  end

end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
woyo-world-0.0.6 lib/woyo/world/location.rb
woyo-world-0.0.5 lib/woyo/world/location.rb
woyo-world-0.0.4 lib/woyo/world/location.rb
woyo-world-0.0.3 lib/woyo/world/location.rb
woyo-world-0.0.2 lib/woyo/world/location.rb