lib/quby/compiler/entities/flag.rb in quby-compiler-0.5.5 vs lib/quby/compiler/entities/flag.rb in quby-compiler-0.5.6

- old
+ new

@@ -25,13 +25,9 @@ def if_triggered_by(answer_flags) yield if answer_flags[key] == trigger_on end - def variable_description - "#{description} (true - '#{description_true}', false - '#{description_false}')" - end - private def ensure_valid_descriptions unless (description_false.present? && description_true.present?) || description.present? raise "Flag '#{key}' Requires at least either both description_true and description_false or a description"