Module: Presenting::Configurable

Instance Method Summary collapse

Instance Method Details

#initialize(options = {}) {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



3
4
5
6
7
8
# File 'lib/presenting/configurable.rb', line 3

def initialize(options = {}, &block)
  options.each do |k, v|
    self.send("#{k}=", v)
  end
  yield self if block_given?
end