Module: NeedleInAHaystack

Defined in:
lib/needle_in_a_haystack.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



25
26
27
# File 'lib/needle_in_a_haystack.rb', line 25

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



27
28
29
30
# File 'lib/needle_in_a_haystack.rb', line 27

def configure
  self.configuration ||= Configuration.new
  yield(configuration)
end