Skip to content

Commit

Permalink
More doc tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
obrie committed Mar 5, 2009
1 parent a25b0da commit 491e51c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/state_machine/guard.rb
Expand Up @@ -180,7 +180,7 @@ def build_matcher(options, whitelist_option, blacklist_option)
end

# Verifies that all configured requirements (event and state) match the
# given query. If a match is return, then a hash containing the
# given query. If a match is found, then a hash containing the
# event/state requirements that passed will be returned; otherwise, nil.
def match_query(query)
query ||= {}
Expand Down
8 changes: 4 additions & 4 deletions lib/state_machine/machine.rb
Expand Up @@ -44,7 +44,7 @@ module StateMachine
# example,
#
# class Vehicle
# state_machine, :initial => :parked do
# state_machine :initial => :parked do
# before_transition any => :idling, :do => lambda {|vehicle| throw :halt}
# ...
# end
Expand Down Expand Up @@ -454,7 +454,7 @@ def initial_state(object)
#
# == Behaviors
#
# Behaviors defined a series of methods to mixin with objects when the current
# Behaviors define a series of methods to mixin with objects when the current
# state matches the given one(s). This allows instance methods to behave
# a specific way depending on what the value of the object's state is.
#
Expand Down Expand Up @@ -569,7 +569,7 @@ def initial_state(object)
# This functionality is not library-specific and can work for any class-level
# method that is defined like so:
#
# def validates_presence_of(args, options = {})
# def validates_presence_of(attribute, options = {})
# ...
# end
#
Expand Down Expand Up @@ -597,7 +597,7 @@ def state(*names, &block)
# Determines whether the given object is in a specific state. If the
# object's current value doesn't match the state, then this will return
# false, otherwise true. If the given state is unknown, then an ArgumentError
# exception will be raised.
# will be raised.
#
# == Examples
#
Expand Down
2 changes: 1 addition & 1 deletion lib/state_machine/transition.rb
Expand Up @@ -16,7 +16,7 @@ class Transition
# The state machine for which this transition is defined
attr_reader :machine

# The event that caused the transition
# The event that triggered the transition
attr_reader :event

# The original state value *before* the transition
Expand Down

0 comments on commit 491e51c

Please sign in to comment.