Class: Leek::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/leek/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dirsObject



14
15
16
# File 'lib/leek/config.rb', line 14

def dirs
  @dirs ||= []
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Leek::Config)

    the object that the method was called on



10
11
12
# File 'lib/leek/config.rb', line 10

def configure &block
  yield self
end