Class: Spool::DSL

Inherits:
Object
  • Object
show all
Defined in:
lib/spool/dsl.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#configurationObject (readonly)

Returns the value of attribute configuration.



9
10
11
# File 'lib/spool/dsl.rb', line 9

def configuration
  @configuration
end

Class Method Details

.configure(filename = nil, &block) ⇒ Object



4
5
6
7
# File 'lib/spool/dsl.rb', line 4

def self.configure(filename=nil, &block)
  dsl = new filename, &block
  dsl.configuration
end