Method: Wedge.setup

Defined in:
lib/wedge.rb

.setup {|Config| ... } ⇒ Object

Used to setup the component with default options.

Examples:

class SomeComponent < Component
  setup do |config|
    config.name :some
  end
end

Yields:



217
218
219
# File 'lib/wedge.rb', line 217

def setup(&block)
  block.call config if block_given?
end