Module: Configuration::NAnt

Includes:
Albacore::Configuration
Defined in:
lib/albacore/config/nantconfig.rb

Instance Method Summary collapse

Methods included from Albacore::Configuration

included

Instance Method Details

#nant {|@nantconfig| ... } ⇒ Object

Yields:

  • (@nantconfig)


8
9
10
11
12
# File 'lib/albacore/config/nantconfig.rb', line 8

def nant
  @nantconfig ||= OpenStruct.new.extend(OpenStructToHash)
  yield(@nantconfig) if block_given?
  @nantconfig
end