module WebSandboxConsole

Constants

CLASS_METHOD_BUILT_IN_BLACKLIST

内置 类方法 黑名单

INSTANT_METOD_BUILT_IN_BLACKLIST

内置 实例方法 黑名单

VERSION

Public Class Methods

indifferent_access_deal(mattr_arr) click to toggle source

无差别hash 处理

# File lib/web_sandbox_console/configuration.rb, line 48
def self.indifferent_access_deal(mattr_arr)
  mattr_arr.each do |mattr|
    current_hash = send(mattr)
    next unless current_hash.is_a?(Hash)
    send("#{mattr}=", current_hash.with_indifferent_access)
  end
end
setup() { |self| ... } click to toggle source
# File lib/web_sandbox_console/configuration.rb, line 42
def self.setup
  yield self
  indifferent_access_deal(%w(http_basic_auth))
end