lib/jira-profiler/configuration.rb
def define_dynamic_config_field(method_sym)
      class_eval <<-RUBY
      def #{method_sym}
        @values[:#{method_sym}]
      end

      def #{method_sym}=(value)
        @values[:#{method_sym}] = value
      end
      RUBY
    end
# Create config field accessor and setter to avoid calling method_missing more than once
Create config field accessor and setter to avoid calling method_missing more than once
Create config field accessor and setter to avoid calling method_missing more than once
def define_dynamic_config_field(method_sym)
      class_eval <<-RUBY
      def #{method_sym}
        @values[:#{method_sym}]
      end
      def #{method_sym}=(value)
        @values[:#{method_sym}] = value
      end
      RUBY
    end
def define_dynamic_config_field ( method_sym ) class_eval <<-RUBY 
      def  #{ method_sym } 
        @values[: #{ method_sym } ]
      end

      def  #{ method_sym } =(value)
        @values[: #{ method_sym } ] = value
      end
       RUBY end
Create config field accessor and setter to avoid calling method_missing more than once
Create config field accessor and setter to avoid calling method_missing more than once
method_sym