Module: LazyAnt::DSL::Connection::ClassMethods
- Defined in:
- lib/lazy_ant/dsl/connection.rb
Instance Method Summary collapse
Instance Method Details
#base_url(url = nil, &block) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/lazy_ant/dsl/connection.rb', line 34 def base_url(url = nil, &block) if block_given? define_method :base_url do @base_url ||= instance_eval(&block) end else define_method :base_url do url end end end |
#connection(&block) ⇒ Object
50 51 52 |
# File 'lib/lazy_ant/dsl/connection.rb', line 50 def connection(&block) @default_callback = block end |
#converter(name) ⇒ Object
46 47 48 |
# File 'lib/lazy_ant/dsl/connection.rb', line 46 def converter(name) @converter_name = name end |