Sha256: 02215c9d9d0be59c34985d0826c2f04ab55c18130f5d0002d9ff2570f6057799

Contents?: true

Size: 241 Bytes

Versions: 11

Compression:

Stored size: 241 Bytes

Contents

# encoding: utf-8
module RailsBestPractices
  module Core
    class Nil
      def to_s(*arguments)
        self
      end

      # return self
      def method_missing(method_sym, *arguments, &block)
        self
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
rails_best_practices-0.10.1 lib/rails_best_practices/core/nil.rb
rails_best_practices-0.10.0 lib/rails_best_practices/core/nil.rb
rails_best_practices-raydog153-0.9.1 lib/rails_best_practices/core/nil.rb
rails_best_practices-0.9.0 lib/rails_best_practices/core/nil.rb
rails_best_practices-0.8.2 lib/rails_best_practices/core/nil.rb
rails_best_practices-0.8.1 lib/rails_best_practices/core/nil.rb
rails_best_practices-0.8.0 lib/rails_best_practices/core/nil.rb
rails_best_practices-0.7.5 lib/rails_best_practices/core/nil.rb
rails_best_practices-0.7.4 lib/rails_best_practices/core/nil.rb
rails_best_practices-0.7.3 lib/rails_best_practices/core/nil.rb
rails_best_practices-0.7.2 lib/rails_best_practices/core/nil.rb