Sha256: 26ab8e8bdaa30f83120319c05d800e578f7af39dba429d31fd0070a1bb966fad

Contents?: true

Size: 289 Bytes

Versions: 26

Compression:

Stored size: 289 Bytes

Contents

# frozen_string_literal: true

TrueClass.class_eval do
  # :nodoc:
  def to_x(*_args)
    'X'
  end
end

FalseClass.class_eval do
  # :nodoc:
  def to_x(unless_true = '')
    unless_true
  end
end

NilClass.class_eval do
  # :nodoc:
  def to_x(unless_true = nil)
    unless_true
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
to_x_extension-0.1.0 lib/to_x_extension.rb
to_x_extension-1.0.0 lib/to_x_extension.rb
to_x_extension-1.0.0.pre.rc.1 lib/to_x_extension.rb
to_x_extension-0.0.5 lib/to_x_extension.rb
to_x_extension-0.0.4 lib/to_x_extension.rb
to_x_extension-0.0.3 lib/to_x_extension.rb