Class: Adhearsion::CallController::MenuDSL::Menu::ClearableStringBuffer

Inherits:
String
  • Object
show all
Defined in:
lib/adhearsion/call_controller/menu_dsl/menu.rb

Overview

For our default purpose, 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

Instance Method Details

#<<(other) ⇒ Object



197
198
199
# File 'lib/adhearsion/call_controller/menu_dsl/menu.rb', line 197

def <<(other)
  super other.to_s
end

#clear!Object



193
194
195
# File 'lib/adhearsion/call_controller/menu_dsl/menu.rb', line 193

def clear!
  replace ""
end