Class: TTY::Prompt::Question::Checks::CheckModifier
- Inherits:
-
Object
- Object
- TTY::Prompt::Question::Checks::CheckModifier
- Defined in:
- lib/tty/prompt/question/checks.rb
Overview
Check if modifications are applicable
Class Method Summary collapse
Class Method Details
.call(question, value) ⇒ Object
9 10 11 12 13 14 15 |
# 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 |