class Atheneum::Strategy
Public Class Methods
constantize(string)
click to toggle source
# File lib/atheneum/strategy.rb, line 16 def self.constantize(string) string.to_s.split('_').map(&:capitalize).join end
find(name)
click to toggle source
# File lib/atheneum/strategy.rb, line 7 def self.find(name) nodule = constantize(name) begin const_get(nodule) rescue NameError raise StrategyUndefined.new "Strategy \"#{nodule}\" not found" end end