Sha256: eae09164f25958771d5924cb098962e66d51e432dfbd26c0610031ab21839ae8

Contents?: true

Size: 230 Bytes

Versions: 10

Compression:

Stored size: 230 Bytes

Contents

# A module for entities that are openable.
#
module Openable
  def open= bool
    @open = bool
  end

  def open?
    @open ||= false
  end

  def closed?
    !open?
  end

  def accessible?
    open?
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gamefic-standard-3.2.4 lib/gamefic-standard/modules/openable.rb
gamefic-standard-3.2.3 lib/gamefic-standard/modules/openable.rb
gamefic-standard-3.2.2 lib/gamefic-standard/modules/openable.rb
gamefic-standard-3.2.1 lib/gamefic-standard/modules/openable.rb
gamefic-standard-3.2.0 lib/gamefic-standard/modules/openable.rb
gamefic-standard-3.1.0 lib/gamefic-standard/modules/openable.rb
gamefic-standard-3.0.0 lib/gamefic-standard/modules/openable.rb
gamefic-standard-2.4.0 lib/gamefic-standard/modules/openable.rb
gamefic-standard-2.3.1 lib/gamefic-standard/modules/openable.rb
gamefic-standard-2.3.0 lib/gamefic-standard/modules/openable.rb