class AASM::InstanceBase
def state_object_for_name(name)
Experimental RBS support (using type sampling data from the type_fusion
project).
def state_object_for_name: (Symbol name) -> AASM::Core::State
This signature was generated using 1 sample from 1 application.
def state_object_for_name(name) obj = @instance.class.aasm(@name).states.find {|s| s.name == name} raise AASM::UndefinedState, "State :#{name} doesn't exist" if obj.nil? obj end