Class: Leek::Config
- Inherits:
-
Object
- Object
- Leek::Config
- Defined in:
- lib/leek/config.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
- #configure {|_self| ... } ⇒ Object
-
#initialize(&block) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(&block) ⇒ Config
Returns a new instance of Config.
6 7 8 |
# File 'lib/leek/config.rb', line 6 def initialize &block configure(&block) if block_given? end |
Instance Attribute Details
#dirs ⇒ Object
14 15 16 |
# File 'lib/leek/config.rb', line 14 def dirs @dirs ||= [] end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
10 11 12 |
# File 'lib/leek/config.rb', line 10 def configure &block yield self end |