baby_bots 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- 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