baby_bots 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/baby_bots/baby_bot.rb +4 -1
- data/lib/baby_bots/version.rb +1 -1
- metadata +1 -1
data/lib/baby_bots/baby_bot.rb
CHANGED
|
@@ -48,10 +48,13 @@ module BabyBots
|
|
|
48
48
|
end
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
+
def state
|
|
52
|
+
@curr.state
|
|
53
|
+
end
|
|
54
|
+
|
|
51
55
|
# this is the driving function behind the fsa, process
|
|
52
56
|
# will check the current state, doing any processing necessary
|
|
53
57
|
# on the input based on whether or not this
|
|
54
|
-
|
|
55
58
|
def process(event=nil)
|
|
56
59
|
# get the current state
|
|
57
60
|
curr_state = @curr
|
data/lib/baby_bots/version.rb
CHANGED