Class: Clases::Pregunta

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arg) ⇒ Pregunta

Returns a new instance of Pregunta.



283
284
285
286
287
288
289
# File 'lib/imposition/clases.rb', line 283

def initialize(arg)
  if arg.instance_of? String then
    @mensaje=arg
  else
    @ide=arg
  end
end

Instance Attribute Details

#ideObject (readonly)

Returns the value of attribute ide.



282
283
284
# File 'lib/imposition/clases.rb', line 282

def ide
  @ide
end

#mensajeObject

Returns the value of attribute mensaje.



281
282
283
# File 'lib/imposition/clases.rb', line 281

def mensaje
  @mensaje
end

#okObject

Returns the value of attribute ok.



281
282
283
# File 'lib/imposition/clases.rb', line 281

def ok
  @ok
end

#ynObject

Returns the value of attribute yn.



281
282
283
# File 'lib/imposition/clases.rb', line 281

def yn
  @yn
end

Instance Method Details

#==(question) ⇒ Object



292
293
294
295
296
297
# File 'lib/imposition/clases.rb', line 292

def ==(question)
  if question==nil then
    return false
  end
  return @ide==question.ide
end

#metodoObject



290
291
# File 'lib/imposition/clases.rb', line 290

def metodo()
end