Module: Openable
Overview
A module for entities that are openable.
Instance Method Summary collapse
Instance Method Details
#accessible? ⇒ Boolean
18 19 20 |
# File 'lib/gamefic-standard/openable.rb', line 18 def accessible? open? end |
#closed? ⇒ Boolean
14 15 16 |
# File 'lib/gamefic-standard/openable.rb', line 14 def closed? !open? end |
#open=(bool) ⇒ Object
6 7 8 |
# File 'lib/gamefic-standard/openable.rb', line 6 def open= bool @open = bool end |
#open? ⇒ Boolean
10 11 12 |
# File 'lib/gamefic-standard/openable.rb', line 10 def open? @open ||= false end |