diff options
Diffstat (limited to 'state.rb')
-rw-r--r-- | state.rb | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -16,6 +16,19 @@ unless Array.instance_methods.include? "product" end end +class Array + # Confirm that this array has no duplicate elements + def is_uniq? + self == self.uniq + end +end + +class Symbol + def <=>(other) + self.to_s <=> other.to_s + end +end + module UpState # Occurs when the state machine becomes inconsistent |