class Enzymator::Transformations::Config

Public Class Methods

new(config) click to toggle source
# File lib/enzymator/transformations/config.rb, line 5
def initialize(config)
  @config = config.each_with_object({}) do |(k, v), hash|
    hash[k.to_sym] = v
  end
  .freeze
end

Public Instance Methods

method_missing(name, *args, &block) click to toggle source
# File lib/enzymator/transformations/config.rb, line 12
def method_missing(name, *args, &block)
  @config[name]
end
respond_to_missing?(name, include_private = false) click to toggle source
Calls superclass method
# File lib/enzymator/transformations/config.rb, line 16
def respond_to_missing?(name, include_private = false)
  @config.has_key?(name) || super
end