Class: Experiment::Params
- Inherits:
-
Object
- Object
- Experiment::Params
- Defined in:
- lib/experiment/params.rb
Class Method Summary collapse
-
.[](h) ⇒ Object
Return if set the value of the current param.
- .set(a) ⇒ Object
Class Method Details
.[](h) ⇒ Object
Return if set the value of the current param.
If it is not defined fallback to Config#[].
7 8 9 |
# File 'lib/experiment/params.rb', line 7 def self.[](h) @@params[h] || Config[h] end |
.set(a) ⇒ Object
13 14 15 |
# File 'lib/experiment/params.rb', line 13 def self.set(a) # :nodoc: @@params = a end |