Method: Surveyor::Models::AnswerMethods#text_for

Defined in:
lib/surveyor/models/answer_methods.rb

#text_for(position = nil, context = nil, locale = nil) ⇒ Object



53
54
55
56
# File 'lib/surveyor/models/answer_methods.rb', line 53

def text_for(position = nil, context = nil, locale = nil)
  return "" if display_type == "hidden_label"
  imaged(split(in_context(translation(locale)[:text], context), position))
end