Module: Quby::Questionnaires::DSL::Questions::Labeling

Included in:
FloatQuestionBuilder, IntegerQuestionBuilder
Defined in:
lib/quby/questionnaires/dsl/questions/base.rb

Instance Method Summary collapse

Instance Method Details

#label(value) ⇒ Object



84
85
86
# File 'lib/quby/questionnaires/dsl/questions/base.rb', line 84

def label(value)
  @question.labels << value
end

#left_label(value) ⇒ Object

deprecated



89
90
91
# File 'lib/quby/questionnaires/dsl/questions/base.rb', line 89

def left_label(value)
  @question.labels.unshift(value)
end

#right_label(value) ⇒ Object

deprecated



94
95
96
# File 'lib/quby/questionnaires/dsl/questions/base.rb', line 94

def right_label(value)
  @question.labels << value
end