Module: Transfer
- Extended by:
- Transfer
- Included in:
- Transfer
- Defined in:
- lib/transfer.rb,
lib/transfer/config.rb,
lib/transfer/version.rb
Defined Under Namespace
Modules: Generators
Classes: Config, Transferer
Constant Summary
collapse
- VERSION =
"0.0.1"
Instance Method Summary
collapse
Instance Method Details
#configs ⇒ Object
22
23
24
|
# File 'lib/transfer.rb', line 22
def configs
@configs ||= Hash.new {|hash, key| raise "config #{key} not exists" }
end
|
16
17
18
19
20
|
# File 'lib/transfer.rb', line 16
def configure name = :default, &block
config = Config.new
yield config if block_given?
configs[name] = config
end
|