Sha256: 2d4788f2d64f019988bff541a17cae95bf630b348cbbd02bc7df079e96d4417a

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

module Casting
  module Null
    def self.instance_method(_)
      Empty.instance_method(:null)
    end
    def self.method_defined?(_)
      true
    end
  end
  module Blank
    def self.instance_method(_)
      Empty.instance_method(:blank)
    end
    def self.method_defined?(_)
      true
    end
  end
  module Empty
    def null(*, &_block); end
    def blank(*, &_block)
      ""
    end
  end 
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
casting-0.7.2 lib/casting/null.rb