Module: AmplitudeExperiment::Evaluation
- Defined in:
- lib/experiment/evaluation/flag.rb,
lib/experiment/evaluation/select.rb,
lib/experiment/evaluation/murmur3.rb,
lib/experiment/evaluation/evaluation.rb,
lib/experiment/evaluation/semantic_version.rb,
lib/experiment/evaluation/topological_sort.rb
Defined Under Namespace
Modules: Operator Classes: Allocation, Bucket, Condition, Distribution, Engine, Flag, Murmur3, Segment, SemanticVersion, TopologicalSort, Variant
Class Method Summary collapse
Class Method Details
.select(selectable, selector) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/experiment/evaluation/select.rb', line 6 def self.select(selectable, selector) return nil if selector.nil? || selector.empty? selector.each do |selector_element| return nil if selector_element.nil? || selectable.nil? selectable = selectable[selector_element] end selectable.nil? ? nil : selectable end |