File: object.rb

package info (click to toggle)
ruby-nori 2.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 256 kB
  • sloc: ruby: 1,155; xml: 266; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 216 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
class Nori
  module CoreExt
    module Object

      def blank?
        respond_to?(:empty?) ? empty? : !self
      end unless method_defined?(:blank?)

    end
  end
end

Object.send :include, Nori::CoreExt::Object