Sha256: 667b2c27b290eb8448ab8a794f443872ef89faa9a8709baeaf8f270d8920e3ad

Contents?: true

Size: 339 Bytes

Versions: 1

Compression:

Stored size: 339 Bytes

Contents

module FeatureRich
  class Config < ActiveSupport::OrderedOptions
    def initialize(*args)
      super(*args)
      self.feature_model ||= "Feature"
    end


    def method_missing(name, *args)
      if args.size == 1 && name.to_s !~ /=$/
        super("#{name}=",*args)
      else
        super(name, *args)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
feature-rich-0.2.0 lib/feature-rich/config.rb