Method: TrailGuide::Experiments::Config#on_start
- Defined in:
- lib/trail_guide/experiments/config.rb
#on_start(meth = nil, &block) ⇒ Object
234 235 236 237 238 |
# File 'lib/trail_guide/experiments/config.rb', line 234 def on_start(meth=nil, &block) raise ArgumentError if meth.nil? && !block_given? self[:on_start] ||= [] self[:on_start] << (meth || block) end |