class ParamsBase
Public Instance Methods
[](key)
click to toggle source
Calls superclass method
# File lib/params/params_base.rb, line 2 def [] key BrpmAuto.substitute_tokens(super(key)) end
add(key, value)
click to toggle source
find_or_add(key, value)
click to toggle source
get(key, default_value = "")
click to toggle source
method_missing(key, *args)
click to toggle source
Allows you to specify a key like a method call
Attributes¶ ↑
-
key_name
- key name note: you must use get if keyname has spaces -
+*args+ - allows you to send a default value
Returns¶ ↑
-
value of key - including resolved properties that may be embedded
Examples¶ ↑
@p = Params.new(params) @p.SS_application => "Sales"
# File lib/params/params_base.rb, line 61 def method_missing(key, *args) ans = get(key.to_s) ans = args[0] if ans == "" && args[0] ans end