Class: Clases::MensajeTiempo
- Defined in:
- lib/imposition/clases.rb
Instance Attribute Summary collapse
-
#tipo ⇒ Object
readonly
Returns the value of attribute tipo.
Attributes inherited from Mensaje
Instance Method Summary collapse
-
#initialize(tipo, tiempo) ⇒ MensajeTiempo
constructor
A new instance of MensajeTiempo.
Methods inherited from Mensaje
Constructor Details
#initialize(tipo, tiempo) ⇒ MensajeTiempo
Returns a new instance of MensajeTiempo.
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 |
# File 'lib/imposition/clases.rb', line 225 def initialize(tipo,tiempo) @tiempo=tiempo @level=1 if tipo==1 then#booklets @id=14#fijo @mensaje="::::::::::::booklets:::::::::::::\n"#blink blink @mensaje+="booklets: " elsif tipo==2 then @id=9#fijo @mensaje="::::::::::::cut&Stack::::::::::::\n"#blink blink @mensaje+="cut&Stack: " end @mensaje+=@tiempo.to_s+" segundos" super(level,mensaje) end |
Instance Attribute Details
#tipo ⇒ Object (readonly)
Returns the value of attribute tipo.
224 225 226 |
# File 'lib/imposition/clases.rb', line 224 def tipo @tipo end |