lib/jira-profiler/configuration.rb
# Allow configuration by passing a hash or by using block style
Allow configuration by passing a hash or by using block style
Allow configuration by passing a hash or by using block style
def configure(h={})
      if block_given?
        yield(self.configuration)
      elsif h.has_key?(:config_file)
        @configuration = Configuration.from_yaml_file(h[:config_file])
      else
        @configuration = Configuration.new(h)
      end
    end
def configure ( h = { } ) if block_given? yield ( self . configuration ) elsif h . has_key? ( :config_file ) @configuration = Configuration . from_yaml_file ( h [ :config_file ] ) else @configuration = Configuration . new ( h ) end end
Allow configuration by passing a hash or by using block style
Allow configuration by passing a hash or by using block style
h