Class: Adhearsion::VoIP::Menu::ClearableStringBuffer

Inherits:
String
  • Object
show all
Defined in:
lib/adhearsion/voip/menu_state_machine/menu_class.rb

Overview

For our default purposes, we need the digit_buffer to behave much like a normal String except that it should handle its own resetting (clearing).

Instance Method Summary collapse

Methods inherited from String

===, #nameify, #nameify!, random, random_char, #unindent, #unindent!

Instance Method Details

#<<(other) ⇒ Object



141
142
143
# File 'lib/adhearsion/voip/menu_state_machine/menu_class.rb', line 141

def <<(other)
  super other.to_s
end

#clear!Object



137
138
139
# File 'lib/adhearsion/voip/menu_state_machine/menu_class.rb', line 137

def clear!
  replace ""
end