Module: HotCocoaView::ClassMethods

Defined in:
lib/hotcocoa/mvc.rb

Instance Method Summary collapse

Instance Method Details

#controller(name = nil) ⇒ Object


121
122
123
124
125
126
127
# File 'lib/hotcocoa/mvc.rb', line 121

def controller name = nil
  if name
    @name = name
  else
    @name || :application_controller
  end
end

#options(options = nil) ⇒ Object


129
130
131
132
133
134
135
# File 'lib/hotcocoa/mvc.rb', line 129

def options options = nil
  if options
    @options = options
  else
    @options
  end
end