Module: Pakyow::Application::Behavior::Presenter::Modes

Extended by:
Support::Extension
Defined in:
lib/pakyow/application/behavior/presenter/modes.rb

Defined Under Namespace

Classes: ModeCallContext

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#__ui_modesObject

Returns the value of attribute __ui_modes.



19
20
21
# File 'lib/pakyow/application/behavior/presenter/modes.rb', line 19

def __ui_modes
  @__ui_modes
end

Instance Method Details

#mode(name, &block) ⇒ Object



21
22
23
# File 'lib/pakyow/application/behavior/presenter/modes.rb', line 21

def mode(name, &block)
  @__ui_modes[name.to_sym] = wrap_mode_block(block)
end