Class: Clases::PreguntaTodasPag

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(nPliegos, nX, nY, caben, tiene) ⇒ PreguntaTodasPag

Returns a new instance of PreguntaTodasPag.



348
349
350
351
352
353
354
355
356
# File 'lib/imposition/clases.rb', line 348

def initialize(nPliegos, nX, nY, caben, tiene)
  @ide=3
  @mensaje=I18n.t(:allPdfq, :p=>tiene.to_i, :s=>nPliegos.to_i, :nX=>nX, :nY=>nY, :c=>caben.to_i)
  @nPliegos=nPliegos
  @nX=nX
  @nY=nY
  @caben=caben
  @tiene=tiene
end

Instance Attribute Details

#cabenObject

Returns the value of attribute caben.



347
348
349
# File 'lib/imposition/clases.rb', line 347

def caben
  @caben
end

#nPliegosObject

Returns the value of attribute nPliegos.



347
348
349
# File 'lib/imposition/clases.rb', line 347

def nPliegos
  @nPliegos
end

#nXObject

Returns the value of attribute nX.



347
348
349
# File 'lib/imposition/clases.rb', line 347

def nX
  @nX
end

#nYObject

Returns the value of attribute nY.



347
348
349
# File 'lib/imposition/clases.rb', line 347

def nY
  @nY
end

#tieneObject

Returns the value of attribute tiene.



347
348
349
# File 'lib/imposition/clases.rb', line 347

def tiene
  @tiene
end

Instance Method Details

#metodo(yn) ⇒ Object



357
358
359
360
# File 'lib/imposition/clases.rb', line 357

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