class AASM::StateMachineStore

def fetch(klass, fallback = nil)

Experimental RBS support (using type sampling data from the type_fusion project).

def fetch: (Class klass, ?true fallback) -> AASM::StateMachineStore

This signature was generated using 2 samples from 1 application.

def fetch(klass, fallback = nil)
  stores[klass.to_s] || fallback && begin
    match = klass.ancestors.find do |ancestor|
      ancestor.include? AASM and stores[ancestor.to_s]
    end
    stores[match.to_s]
  end
end