Sha256: 5edb99754e226d132670f19ede5b3e2147dc11761ddf16524ca52c15585bb1c2

Contents?: true

Size: 127 Bytes

Versions: 5

Compression:

Stored size: 127 Bytes

Contents

class NilClass

  def to_yes_no(options={})
    options.fetch(:if_nil, "")
  end

  def not_nil?
    false
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
corelib-0.0.6 lib/corelib/nil/core.rb
corelib-0.0.5 lib/corelib/nil/core.rb
corelib-0.0.4 lib/corelib/nil/core.rb
corelib-0.0.3 lib/corelib/nil/core.rb
corelib-0.0.2 lib/corelib/nil/core.rb