module Strategic::Strategy::ClassMethods
Public Instance Methods
strategy_alias(alias_string_or_class_or_object)
click to toggle source
# File lib/strategic/strategy.rb, line 29 def strategy_alias(alias_string_or_class_or_object) strategy_aliases << alias_string_or_class_or_object end
strategy_aliases()
click to toggle source
# File lib/strategic/strategy.rb, line 33 def strategy_aliases @strategy_aliases ||= [] end
strategy_exclusion(exclusion_string_or_class_or_object)
click to toggle source
# File lib/strategic/strategy.rb, line 37 def strategy_exclusion(exclusion_string_or_class_or_object) strategy_exclusions << exclusion_string_or_class_or_object end
strategy_exclusions()
click to toggle source
# File lib/strategic/strategy.rb, line 41 def strategy_exclusions @strategy_exclusions ||= [] end
strategy_matcher(&matcher_block)
click to toggle source
# File lib/strategic/strategy.rb, line 45 def strategy_matcher(&matcher_block) if block_given? @strategy_matcher = matcher_block else @strategy_matcher end end
strategy_name()
click to toggle source
# File lib/strategic/strategy.rb, line 53 def strategy_name Strategic.underscore(name.split(':').last).sub(/_strategy$/, '') end