Returns the string wrapped in a #Yummi#TextBox.
Returns the string wrapped in a #Yummi#TextBox. The given parameters will be used to instantiate the TextBox.
30 31 32 33 34
# File 'lib/yummi/extensions.rb', line 30 def on_box params = {} box = Yummi::TextBox::new params box.add self return box end