Class: Clases::PreguntaExigePar

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

Overview

TODO sugerencia si + o -

Instance Attribute Summary collapse

Attributes inherited from Pregunta

#ide, #mensaje, #ok, #yn

Instance Method Summary collapse

Methods inherited from Pregunta

#==

Constructor Details

#initialize(nX) ⇒ PreguntaExigePar

Returns a new instance of PreguntaExigePar.



303
304
305
306
307
# File 'lib/imposition/clases.rb', line 303

def initialize(nX)
  @nX=nX
  @mensaje=I18n.t(:nXPair, :nX=>@nX)
  @ok=false
end

Instance Attribute Details

#nXObject

Returns the value of attribute nX.



302
303
304
# File 'lib/imposition/clases.rb', line 302

def nX
  @nX
end

Instance Method Details

#metodo(nX) ⇒ Object



308
309
310
311
# File 'lib/imposition/clases.rb', line 308

def metodo(nX)
  @nX=nX.to_i
  @ok=true
end