Class: Experiment::Params

Inherits:
Object
  • Object
show all
Defined in:
lib/experiment/params.rb

Class Method Summary collapse

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