SYMBOL INDEX (258 symbols across 45 files) FILE: lib/aasm/aasm.rb type AASM (line 1) | module AASM function included (line 3) | def self.included(base) #:nodoc: type ClassMethods (line 14) | module ClassMethods function inherited (line 17) | def inherited(base) function aasm (line 23) | def aasm(options={}, &block) function aasm_initial_state (line 30) | def aasm_initial_state(set_state=nil) function aasm_from_states_for_state (line 40) | def aasm_from_states_for_state(state, options={}) function aasm_initial_state= (line 49) | def aasm_initial_state=(state) function aasm_state (line 54) | def aasm_state(name, options={}) function aasm_event (line 59) | def aasm_event(name, options = {}, &block) function aasm_states (line 64) | def aasm_states function aasm_events (line 69) | def aasm_events function aasm_states_for_select (line 74) | def aasm_states_for_select function aasm_human_event_name (line 79) | def aasm_human_event_name(event) # event_name? function aasm (line 84) | def aasm function aasm_read_state (line 89) | def aasm_read_state function aasm_write_state (line 97) | def aasm_write_state(new_state) function aasm_write_state_without_persistence (line 102) | def aasm_write_state_without_persistence(new_state) function aasm_current_state (line 107) | def aasm_current_state function aasm_enter_initial_state (line 113) | def aasm_enter_initial_state function aasm_events_for_current_state (line 119) | def aasm_events_for_current_state function aasm_permissible_events_for_current_state (line 125) | def aasm_permissible_events_for_current_state function aasm_events_for_state (line 131) | def aasm_events_for_state(state_name) function aasm_human_state (line 137) | def aasm_human_state function aasm_fire_event (line 144) | def aasm_fire_event(event_name, options, *args) function fired (line 163) | def fired(event, old_state, new_state_name, options) function failed (line 195) | def failed(event_name, old_state) FILE: lib/aasm/base.rb type AASM (line 1) | module AASM class Base (line 2) | class Base method initialize (line 4) | def initialize(clazz, options={}, &block) method initial_state (line 22) | def initial_state method state (line 27) | def state(name, options={}) method event (line 42) | def event(name, options={}, &block) method states (line 65) | def states method events (line 69) | def events method states_for_select (line 73) | def states_for_select FILE: lib/aasm/deprecated/aasm.rb type AASM (line 1) | module AASM type ClassMethods (line 3) | module ClassMethods function human_event_name (line 4) | def human_event_name(*args) function human_state (line 10) | def human_state FILE: lib/aasm/errors.rb type AASM (line 1) | module AASM class InvalidTransition (line 2) | class InvalidTransition < RuntimeError; end class UndefinedState (line 3) | class UndefinedState < RuntimeError; end FILE: lib/aasm/event.rb type AASM (line 1) | module AASM class Event (line 2) | class Event method initialize (line 6) | def initialize(name, options = {}, &block) method may_fire? (line 15) | def may_fire?(obj, to_state=nil, *args) method fire (line 19) | def fire(obj, to_state=nil, *args) method transitions_from_state? (line 23) | def transitions_from_state?(state) method transitions_from_state (line 27) | def transitions_from_state(state) method transitions_to_state? (line 31) | def transitions_to_state?(state) method transitions_to_state (line 35) | def transitions_to_state(state) method all_transitions (line 40) | def all_transitions method fire_callbacks (line 45) | def fire_callbacks(callback_name, record, *args) method == (line 49) | def ==(event) method update (line 59) | def update(options = {}, &block) method _fire (line 68) | def _fire(obj, test, to_state=nil, *args) method invoke_callbacks (line 93) | def invoke_callbacks(code, record, args) method transitions (line 110) | def transitions(trans_opts=nil) FILE: lib/aasm/instance_base.rb type AASM (line 1) | module AASM class InstanceBase (line 2) | class InstanceBase method initialize (line 4) | def initialize(instance) method current_state (line 8) | def current_state method current_state= (line 12) | def current_state=(state) method enter_initial_state (line 17) | def enter_initial_state method human_state (line 29) | def human_state method states (line 33) | def states(options={}) method events (line 46) | def events(state=current_state) method permissible_events (line 54) | def permissible_events method state_object_for_name (line 58) | def state_object_for_name(name) method determine_state_name (line 64) | def determine_state_name(state) method may_fire_event? (line 75) | def may_fire_event?(name, *args) method set_current_state_with_persistence (line 80) | def set_current_state_with_persistence(state) FILE: lib/aasm/localizer.rb type AASM (line 1) | module AASM class Localizer (line 2) | class Localizer method human_event_name (line 3) | def human_event_name(klass, event) method human_state_name (line 11) | def human_state_name(klass, state) method item_for (line 22) | def item_for(klass, state, ancestor, options={}) method translate_queue (line 27) | def translate_queue(checklist) method i18n_scope (line 39) | def i18n_scope(klass) method i18n_klass (line 44) | def i18n_klass(klass) method ancestors_list (line 48) | def ancestors_list(klass) FILE: lib/aasm/persistence.rb type AASM (line 1) | module AASM type Persistence (line 2) | module Persistence function load_persistence (line 5) | def load_persistence(base) function require_files_for (line 20) | def require_files_for(persistence) FILE: lib/aasm/persistence/active_record_persistence.rb type AASM (line 1) | module AASM type Persistence (line 2) | module Persistence type ActiveRecordPersistence (line 3) | module ActiveRecordPersistence function included (line 29) | def self.included(base) type ClassMethods (line 41) | module ClassMethods function find_in_state (line 43) | def find_in_state(number, state, *args) function count_in_state (line 49) | def count_in_state(state, *args) function calculate_in_state (line 55) | def calculate_in_state(state, *args) function with_state_scope (line 62) | def with_state_scope(state) type InstanceMethods (line 69) | module InstanceMethods function aasm_write_state (line 80) | def aasm_write_state(state) function aasm_write_state_without_persistence (line 109) | def aasm_write_state_without_persistence(state) function aasm_ensure_initial_state (line 130) | def aasm_ensure_initial_state function aasm_fire_event (line 134) | def aasm_fire_event(name, options, *args) FILE: lib/aasm/persistence/base.rb type AASM (line 1) | module AASM type Persistence (line 2) | module Persistence type Base (line 3) | module Base function included (line 5) | def self.included(base) #:nodoc: function aasm_read_state (line 35) | def aasm_read_state type ClassMethods (line 44) | module ClassMethods function aasm_column (line 70) | def aasm_column(column_name=nil) class Base (line 86) | class Base method state_with_scope (line 88) | def state_with_scope(name, *args) FILE: lib/aasm/persistence/mongoid_persistence.rb type AASM (line 1) | module AASM type Persistence (line 2) | module Persistence type MongoidPersistence (line 3) | module MongoidPersistence function included (line 31) | def self.included(base) type ClassMethods (line 41) | module ClassMethods function find_in_state (line 43) | def find_in_state(number, state, *args) function count_in_state (line 49) | def count_in_state(state, *args) function with_state_scope (line 55) | def with_state_scope(state) type InstanceMethods (line 63) | module InstanceMethods function aasm_write_state (line 75) | def aasm_write_state(state) function aasm_write_state_without_persistence (line 99) | def aasm_write_state_without_persistence(state) function aasm_ensure_initial_state (line 120) | def aasm_ensure_initial_state type NamedScopeMethods (line 125) | module NamedScopeMethods function aasm_state_with_named_scope (line 126) | def aasm_state_with_named_scope name, options = {} FILE: lib/aasm/state.rb type AASM (line 1) | module AASM class State (line 2) | class State method initialize (line 5) | def initialize(name, clazz, options={}) method == (line 11) | def ==(state) method <=> (line 19) | def <=>(state) method to_s (line 27) | def to_s method fire_callbacks (line 31) | def fire_callbacks(action, record) method display_name (line 40) | def display_name method localized_name (line 50) | def localized_name method for_select (line 54) | def for_select method update (line 60) | def update(options = {}) method _fire_callbacks (line 68) | def _fire_callbacks(action, record) FILE: lib/aasm/state_machine.rb type AASM (line 1) | module AASM class StateMachine (line 2) | class StateMachine method [] (line 5) | def self.[](clazz) method []= (line 9) | def self.[]=(clazz, machine) method initialize (line 17) | def initialize(name) method initialize_copy (line 26) | def initialize_copy(orig) method add_state (line 32) | def add_state(name, clazz, options) FILE: lib/aasm/transition.rb type AASM (line 1) | module AASM class Transition (line 2) | class Transition method initialize (line 6) | def initialize(opts) method perform (line 12) | def perform(obj, *args) method execute (line 23) | def execute(obj, *args) method == (line 29) | def ==(obj) method from? (line 33) | def from?(value) method _execute (line 39) | def _execute(obj, on_transition, *args) FILE: lib/aasm/version.rb type AASM (line 1) | module AASM FILE: spec/models/active_record/api.rb class DefaultState (line 1) | class DefaultState class ProvidedState (line 14) | class ProvidedState method aasm_read_state (line 26) | def aasm_read_state method aasm_write_state (line 30) | def aasm_write_state(new_state) method aasm_write_state_without_persistence (line 34) | def aasm_write_state_without_persistence(new_state) class PersistedState (line 39) | class PersistedState < ActiveRecord::Base class ProvidedAndPersistedState (line 52) | class ProvidedAndPersistedState < ActiveRecord::Base method aasm_read_state (line 64) | def aasm_read_state method aasm_write_state (line 68) | def aasm_write_state(new_state) method aasm_write_state_without_persistence (line 72) | def aasm_write_state_without_persistence(new_state) FILE: spec/models/argument.rb class Argument (line 1) | class Argument FILE: spec/models/auth_machine.rb class AuthMachine (line 1) | class AuthMachine method initialize (line 46) | def initialize method make_activation_code (line 52) | def make_activation_code method do_activate (line 56) | def do_activate method do_delete (line 61) | def do_delete method do_undelete (line 65) | def do_undelete method can_register? (line 69) | def can_register? method has_activated? (line 73) | def has_activated? method has_activation_code? (line 77) | def has_activation_code? method if_polite? (line 81) | def if_polite?(phrase = nil) FILE: spec/models/bar.rb class Bar (line 1) | class Bar class Baz (line 14) | class Baz < Bar FILE: spec/models/callback_new_dsl.rb class CallbackNewDsl (line 1) | class CallbackNewDsl method before_enter_open (line 28) | def before_enter_open; end method before_exit_open (line 29) | def before_exit_open; end method after_enter_open (line 30) | def after_enter_open; end method after_exit_open (line 31) | def after_exit_open; end method before_enter_closed (line 33) | def before_enter_closed; end method before_exit_closed (line 34) | def before_exit_closed; end method after_enter_closed (line 35) | def after_enter_closed; end method after_exit_closed (line 36) | def after_exit_closed; end method before (line 38) | def before; end method after (line 39) | def after; end method enter_closed (line 41) | def enter_closed; end method exit_open (line 42) | def exit_open; end FILE: spec/models/callback_old_dsl.rb class CallbackOldDsl (line 1) | class CallbackOldDsl method before_enter_open (line 26) | def before_enter_open; end method before_exit_open (line 27) | def before_exit_open; end method after_enter_open (line 28) | def after_enter_open; end method after_exit_open (line 29) | def after_exit_open; end method before_enter_closed (line 31) | def before_enter_closed; end method before_exit_closed (line 32) | def before_exit_closed; end method after_enter_closed (line 33) | def after_enter_closed; end method after_exit_closed (line 34) | def after_exit_closed; end method before (line 36) | def before; end method after (line 37) | def after; end method enter_closed (line 39) | def enter_closed; end method exit_open (line 40) | def exit_open; end FILE: spec/models/conversation.rb class Conversation (line 1) | class Conversation method initialize (line 33) | def initialize(persister) method aasm_read_state (line 39) | def aasm_read_state method aasm_write_state (line 43) | def aasm_write_state(state) FILE: spec/models/father.rb class Father (line 3) | class Father < ActiveRecord::Base method update_state (line 15) | def update_state FILE: spec/models/foo.rb class Foo (line 1) | class Foo method always_false (line 16) | def always_false method success_callback (line 20) | def success_callback method enter (line 23) | def enter method exit (line 25) | def exit class FooTwo (line 29) | class FooTwo < Foo FILE: spec/models/invalid_persistor.rb class InvalidPersistor (line 3) | class InvalidPersistor < ActiveRecord::Base FILE: spec/models/mongoid/simple_mongoid.rb class SimpleMongoid (line 1) | class SimpleMongoid FILE: spec/models/mongoid/simple_new_dsl_mongoid.rb class SimpleNewDslMongoid (line 1) | class SimpleNewDslMongoid FILE: spec/models/not_auto_loaded/process.rb type Models (line 1) | module Models class Process (line 2) | class Process FILE: spec/models/parametrised_event.rb class ParametrisedEvent (line 1) | class ParametrisedEvent method wear_clothes (line 21) | def wear_clothes(shirt_color, trouser_type) method condition_hair (line 24) | def condition_hair method fix_hair (line 27) | def fix_hair FILE: spec/models/persistence.rb class Gate (line 1) | class Gate < ActiveRecord::Base class Reader (line 17) | class Reader < ActiveRecord::Base method aasm_read_state (line 20) | def aasm_read_state class Writer (line 25) | class Writer < ActiveRecord::Base method aasm_write_state (line 26) | def aasm_write_state(state) class Transient (line 32) | class Transient < ActiveRecord::Base method aasm_write_state_without_persistence (line 33) | def aasm_write_state_without_persistence(state) class Simple (line 39) | class Simple < ActiveRecord::Base class SimpleNewDsl (line 46) | class SimpleNewDsl < ActiveRecord::Base class Derivate (line 55) | class Derivate < Simple class DerivateNewDsl (line 58) | class DerivateNewDsl < SimpleNewDsl class Thief (line 61) | class Thief < ActiveRecord::Base FILE: spec/models/process_with_new_dsl.rb class ProcessWithNewDsl (line 1) | class ProcessWithNewDsl method state (line 4) | def self.state(*args) method flag (line 23) | def flag method event (line 27) | def self.event(*args) FILE: spec/models/silencer.rb class Silencer (line 1) | class Silencer FILE: spec/models/son.rb class Son (line 1) | class Son < Father FILE: spec/models/sub_classing.rb class SubClassing (line 1) | class SubClassing < Silencer FILE: spec/models/this_name_better_not_be_in_use.rb class ThisNameBetterNotBeInUse (line 1) | class ThisNameBetterNotBeInUse FILE: spec/models/transactor.rb class Transactor (line 2) | class Transactor < ActiveRecord::Base method start_worker (line 18) | def start_worker method fail (line 22) | def fail FILE: spec/models/validator.rb class Validator (line 3) | class Validator < ActiveRecord::Base FILE: spec/models/worker.rb class Worker (line 1) | class Worker < ActiveRecord::Base FILE: spec/spec_helper.rb function load_schema (line 15) | def load_schema FILE: spec/unit/callbacks_spec.rb class Foo (line 42) | class Foo function error_callback (line 52) | def @foo.error_callback(e); end function aasm_event_fired (line 74) | def @foo.aasm_event_fired(event, from, to); end function aasm_event_failed (line 97) | def @foo.aasm_event_failed(event, from); end FILE: spec/unit/event_spec.rb function aasm_write_state (line 263) | def foo.aasm_write_state; end FILE: spec/unit/initial_state_spec.rb class Banker (line 3) | class Banker method initialize (line 12) | def initialize(balance = 0); self.balance = balance; end method rich? (line 13) | def rich?; self.balance >= RICH; end FILE: spec/unit/localizer_spec.rb class LocalizerTestModel (line 8) | class LocalizerTestModel < ActiveRecord::Base FILE: spec/unit/simple_example_spec.rb class Payment (line 3) | class Payment FILE: spec/unit/state_spec.rb function new_state (line 9) | def new_state(options={})