Method: Metodos.nuevo
- Defined in:
- lib/imposition/metodos.rb
.nuevo(valor, unidad) ⇒ Object
forma hash de variable para impostor
99 100 101 102 103 104 |
# File 'lib/imposition/metodos.rb', line 99 def nuevo(valor,unidad) retorno=Hash.new retorno["numero"]=valor ||= 0 retorno["unidad"]=unidad return retorno end |