Class: Hola::Cart::Renderer
- Inherits:
-
Object
- Object
- Hola::Cart::Renderer
- Defined in:
- lib/hola/cart/renderer.rb
Instance Method Summary collapse
-
#initialize(cart) ⇒ Renderer
constructor
A new instance of Renderer.
- #perform ⇒ Object
Constructor Details
#initialize(cart) ⇒ Renderer
Returns a new instance of Renderer.
10 11 12 |
# File 'lib/hola/cart/renderer.rb', line 10 def initialize(cart) @cart = cart end |
Instance Method Details
#perform ⇒ Object
14 15 16 |
# File 'lib/hola/cart/renderer.rb', line 14 def perform table.render(:ascii) end |