Class: Mack::Request::Parameters

Inherits:
Hash show all
Defined in:
lib/mack/controller/request/parameters.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Hash

#getopt

Instance Method Details

#[](key) ⇒ Object



10
11
12
13
14
15
# File 'lib/mack/controller/request/parameters.rb', line 10

def [](key)
  key = key.to_s.downcase
  data = old_hash(key.to_sym) || old_hash(key)
  data = data.to_s if data.is_a?(Symbol)
  return data
end

#[]=(key, value) ⇒ Object



17
18
19
# File 'lib/mack/controller/request/parameters.rb', line 17

def []=(key, value)
  _original_store(key.downcase.to_sym, value)
end

#to_sObject



21
22
23
24
25
26
27
# File 'lib/mack/controller/request/parameters.rb', line 21

def to_s
  s = self.inspect
  Mack::Logging::Filter.list.each do |p|
    s.gsub!(/:#{p}=>\"[^\"]+\"/, ":#{p}=>\"<FILTERED>\"")
  end
  s
end