Method: Menu_dsl#plat
- Defined in:
- lib/prct06/menu_dsl.rb
#plat(options = {}) ⇒ Object
59 60 61 62 63 64 65 66 |
# File 'lib/prct06/menu_dsl.rb', line 59 def plat( = {}) pl = [] pl << "#{options[:descripcion]}" if [:descripcion] pl << "#{options[:porcion]}" if [:porcion] pl << "#{options[:gramos]}" if [:gramos] @platos << pl end |