# frozen_string_literal: true TrueClass.class_eval do unless method_defined?(:to_x) # :nodoc: def to_x(*_args) 'X' end end end FalseClass.class_eval do unless method_defined?(:to_x) # :nodoc: def to_x(unless_true = '') unless_true end end end NilClass.class_eval do unless method_defined?(:to_x) # :nodoc: def to_x(unless_true = nil) unless_true end end end