module BranchableCDNAssets::Config::EnvironmentAttributeReader::ClassMethods
Public Instance Methods
env_attr_reader(*keys)
click to toggle source
# File lib/branchable_cdn_assets/config/environment_attribute_reader.rb, line 12 def env_attr_reader *keys keys.each do |key| define_method key do if env_attr(key).nil? raise( ArgumentError, "No key '#{key.to_s}' exists for '#{env}'" ) else env_attr(key) end end end end