Class: Clases::PreguntaEscalado

Inherits:
Pregunta
  • Object
show all
Defined in:
lib/imposition/clases.rb

Instance Attribute Summary collapse

Attributes inherited from Pregunta

#ide, #mensaje, #ok, #yn

Instance Method Summary collapse

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

#tipoObject

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