Sha256: 7b425f2f968e49a4024e563cac258ee3b696ca52cab670af88e56d26560d43e2
Contents?: true
Size: 378 Bytes
Versions: 4
Compression:
Stored size: 378 Bytes
Contents
module CanTango::Ability::Mode class Finder attr_reader :executor delegate :candidate, :options, :to => :executor def initialize executor @executor = executor end def executor_for mode class_for(mode).new candidate, options end def class_for mode "CanTango::Ability::Mode::#{mode.to_s.camelize}".constantize end end end
Version data entries
4 entries across 4 versions & 1 rubygems