module StateManager::Adapters
Public Class Methods
all()
click to toggle source
# File lib/state_manager/adapters.rb, line 24 def self.all constants = self.constants.map {|c| c.to_s}.sort constants.map {|c| const_get(c)} end
find_by_name(name)
click to toggle source
# File lib/state_manager/adapters.rb, line 20 def self.find_by_name(name) all.detect {|adapter| adapter.integration_name == name} || raise(AdapterNotFound.new(name)) end
match(klass)
click to toggle source
# File lib/state_manager/adapters.rb, line 12 def self.match(klass) all.detect {|adapter| adapter.matches?(klass)} end
match_ancestors(ancestors)
click to toggle source
# File lib/state_manager/adapters.rb, line 16 def self.match_ancestors(ancestors) all.detect {|adapter| adapter.matches_ancestors?(ancestors)} end