Module: Enterable

Included in:
Receptacle, Supporter
Defined in:
lib/gamefic-standard/modules/enterable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#enterable=(value) ⇒ Object (writeonly)

Sets the attribute enterable

Parameters:

  • value

    the value to set the attribute enterable to.



4
5
6
# File 'lib/gamefic-standard/modules/enterable.rb', line 4

def enterable=(value)
  @enterable = value
end

Instance Method Details

#enterable?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/gamefic-standard/modules/enterable.rb', line 6

def enterable?
  @enterable ||= false
end