Module: LazyAnt::DSL

Extended by:
ActiveSupport::Concern
Includes:
Configurable, Connection, Endpoint
Defined in:
lib/lazy_ant/dsl.rb,
lib/lazy_ant/dsl/endpoint.rb,
lib/lazy_ant/dsl/grouping.rb,
lib/lazy_ant/dsl/connection.rb,
lib/lazy_ant/dsl/configurable.rb

Defined Under Namespace

Modules: ClassMethods, Configurable, Connection, Endpoint, Grouping

Instance Method Summary collapse

Methods included from Connection

#callbacks, #connection, #converter_block, #converter_name, #default_callback, #instance_callbacks, #request_type, #response_type, #use_converter

Methods included from Configurable

#config

Instance Method Details

#initialize {|config| ... } ⇒ Object

Yields:



12
13
14
15
16
17
18
# File 'lib/lazy_ant/dsl.rb', line 12

def initialize
  yield config if block_given?
  config.freeze
  config.connection_callbacks.each do |callback|
    instance_callbacks.push callback
  end
end