Module: Yummi::OnBox
Instance Method Summary collapse
-
#on_box(params = {}) ⇒ Object
Returns the string wrapped in a #Yummi#TextBox.
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 |