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
ruby-rails-extensions-2.1.1 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.1.0 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.1.0.pre.rc.14 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.1.0.pre.rc.13 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.1.0.pre.rc.12 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.1.0.pre.rc.11 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.1.0.pre.rc.10 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.1.0.pre.rc.9 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.1.0.pre.rc.8 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.1.0.pre.rc.7 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.1.0.pre.rc.6 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.1.0.pre.rc.5 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.1.0.pre.rc.4 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.1.0.pre.rc.3 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.1.0.pre.rc.2 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.1.0.pre.rc.1 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.0.1 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.0.1.pre.rc.1 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.0.0 lib/ruby-rails-extensions/extensions/to_x.rb
ruby-rails-extensions-2.0.0.pre.rc.1 lib/ruby-rails-extensions/extensions/to_x.rb