Class: Dress::ActiveView

Inherits:
Maker
  • Object
show all
Extended by:
ActionView::Helpers
Includes:
ActionView::Helpers
Defined in:
lib/dress.rb

Overview

TODO break this out to a separate loadable file

Constant Summary collapse

DEFAULT_CONFIG =
ActionView::DEFAULT_CONFIG

Instance Method Summary collapse

Methods inherited from Maker

layout, layouts, #method_missing, render, #render, render_with, #render_with, with

Constructor Details

#initialize(controller) ⇒ ActiveView

Returns a new instance of ActiveView.



198
199
200
# File 'lib/dress.rb', line 198

def initialize(controller)
  @controller = controller
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Dress::Maker

Instance Method Details

#configObject



189
190
191
192
# File 'lib/dress.rb', line 189

def config
  self.config = DEFAULT_CONFIG unless @config
  @config
end

#config=(config) ⇒ Object



194
195
196
# File 'lib/dress.rb', line 194

def config=(config)
  @config = ActiveSupport::OrderedOptions.new.merge(config)
end