Method: Clases::PreguntaEscalado#initialize

Defined in:
lib/imposition/clases.rb

#initialize(tipo) ⇒ PreguntaEscalado

Returns a new instance of PreguntaEscalado.



329
330
331
332
333
334
335
336
337
338
339
# File 'lib/imposition/clases.rb', line 329

def initialize(tipo)    
  @tipo=tipo
  if @tipo=="horizontalmente" then
    @ide=1
    @mensaje=I18n.t(:WnX)+" "+I18n.t(tipo) 
  elsif @tipo=="verticalmente" then
    @ide=2
    @mensaje=I18n.t(:HnY)+" "+I18n.t(tipo)
  end
  @mensaje+=I18n.t(:scale, :tp=>I18n.t(tipo))
end