class TTY::Prompt::Question::Checks::CheckModifier

Check if modifications are applicable

Public Class Methods

call(question, value) click to toggle source
# File lib/tty/prompt/question/checks.rb, line 9
def self.call(question, value)
  if !question.modifier.nil? || question.modifier
    [Modifier.new(question.modifier).apply_to(value)]
  else
    [value]
  end
end