Class: Clases::PreguntaReducir

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

Overview

when imposing in booklets & last group of them can be reduced to minimize blank pages

Instance Attribute Summary collapse

Attributes inherited from Pregunta

#ide, #mensaje, #ok, #yn

Instance Method Summary collapse

Methods inherited from Pregunta

#==

Constructor Details

#initialize(cuadernillosPorCostura, paginasSobran, nCuad, sobranMenos, q) ⇒ PreguntaReducir

Returns a new instance of PreguntaReducir.



365
366
367
368
369
370
371
372
373
374
# File 'lib/imposition/clases.rb', line 365

def initialize(cuadernillosPorCostura, paginasSobran, nCuad, sobranMenos, q)
  @ide=5
  @mensaje=I18n.t(:reduceq, :cXC=>cuadernillosPorCostura, :extra=>paginasSobran, :n=>nCuad, :less=>sobranMenos)
  @cuadernillosPorCostura=cuadernillosPorCostura
  @paginasSobran=paginasSobran
  @nCuad=nCuad
  @sobranMenos=sobranMenos
  @q=q
  super(@mensaje)
end

Instance Attribute Details

#cuadernillosPorCosturaObject (readonly)

Returns the value of attribute cuadernillosPorCostura.



364
365
366
# File 'lib/imposition/clases.rb', line 364

def cuadernillosPorCostura
  @cuadernillosPorCostura
end

#nCuadObject (readonly)

Returns the value of attribute nCuad.



364
365
366
# File 'lib/imposition/clases.rb', line 364

def nCuad
  @nCuad
end

#paginasSobranObject (readonly)

Returns the value of attribute paginasSobran.



364
365
366
# File 'lib/imposition/clases.rb', line 364

def paginasSobran
  @paginasSobran
end

#qObject (readonly)

Returns the value of attribute q.



364
365
366
# File 'lib/imposition/clases.rb', line 364

def q
  @q
end

#sobranMenosObject (readonly)

Returns the value of attribute sobranMenos.



364
365
366
# File 'lib/imposition/clases.rb', line 364

def sobranMenos
  @sobranMenos
end

Instance Method Details

#metodo(yn) ⇒ Object



375
376
377
378
# File 'lib/imposition/clases.rb', line 375

def metodo(yn)
  @yn=yn
  @ok=true
end