Module: Yummi::OnBox

Included in:
String, Table
Defined in:
lib/yummi/extensions.rb

Instance Method Summary collapse

Instance Method Details

#on_box(params = {}) ⇒ Object

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