Sha256: 440c49c62c3dac50536e1447d362206b5f47a0331dd40b141dc61fb201e4b726

Contents?: true

Size: 219 Bytes

Versions: 25

Compression:

Stored size: 219 Bytes

Contents

module RubyApp

  module Mixins

    module ObjectExtension

      def nil_if(value)
        return self == value ? nil : self
      end

    end

  end

end

class Object
  include RubyApp::Mixins::ObjectExtension
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
RubyApp-0.7.16 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.7.15 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.7.14 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.7.13 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.7.12 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.7.11 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.7.10 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.7.9 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.7.5 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.7.4 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.7.3 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.7.2 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.7.1 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.7.0 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.6.71 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.6.70 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.6.69 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.6.68 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.6.67 lib/ruby_app/mixins/object_extension.rb
RubyApp-0.6.66 lib/ruby_app/mixins/object_extension.rb