Class: Clases::MensajeLadoLado

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

Instance Attribute Summary collapse

Attributes inherited from Mensaje

#id, #level, #mensaje

Instance Method Summary collapse

Methods inherited from Mensaje

#==, #to_s

Constructor Details

#initialize(nP) ⇒ MensajeLadoLado

Returns a new instance of MensajeLadoLado.



244
245
246
247
248
249
# File 'lib/imposition/clases.rb', line 244

def initialize(nP)
  @id=7#fijo
  @nP=nP
  @mensaje="como son cuadernillos lado y lado los pliegos no pueden ser impares, se toman #{@nP}+1"
  super(1,@mensaje)
end

Instance Attribute Details

#nPObject (readonly)

Returns the value of attribute nP.



243
244
245
# File 'lib/imposition/clases.rb', line 243

def nP
  @nP
end