Class: Clases::PreguntaEscalado
- Defined in:
- lib/imposition/clases.rb
Instance Attribute Summary collapse
-
#tipo ⇒ Object
Returns the value of attribute tipo.
Attributes inherited from Pregunta
Instance Method Summary collapse
-
#initialize(tipo) ⇒ PreguntaEscalado
constructor
A new instance of PreguntaEscalado.
- #metodo(yn) ⇒ Object
Methods inherited from Pregunta
Constructor Details
#initialize(tipo) ⇒ PreguntaEscalado
Returns a new instance of PreguntaEscalado.
326 327 328 329 330 331 332 333 334 335 336 |
# File 'lib/imposition/clases.rb', line 326 def initialize(tipo) @tipo=tipo if @tipo=="horizontalmente" then @ide=1 @mensaje="no especifico ancho de pagina pero si ancho de pliego y numero de paginas por pliego "+tipo elsif @tipo=="verticalmente" then @ide=2 @mensaje="no especifico alto de pagina pero si alto de pliego y numero de paginas por pliego "+tipo end @mensaje+=" ¿escalar "+tipo+"?" end |
Instance Attribute Details
#tipo ⇒ Object
Returns the value of attribute tipo.
325 326 327 |
# File 'lib/imposition/clases.rb', line 325 def tipo @tipo end |
Instance Method Details
#metodo(yn) ⇒ Object
337 338 339 340 |
# File 'lib/imposition/clases.rb', line 337 def metodo(yn) @yn=yn @ok=true end |