Sha256: 1e8491bdb1a33f1237b742b3ca44f5a37b842b920c274400b419e95acddd6a3a

Contents?: true

Size: 536 Bytes

Versions: 6

Compression:

Stored size: 536 Bytes

Contents

# -*- coding: utf-8 -*-

# Cast a nil to an id.
#
class NilClass

  # Always return nil.
  #
  def to_date_id
    nil
  end

  # Always return nil.
  #
  def to_date_ids
    nil
  end

  # Always return nil.
  #
  def to_stint_id
    nil
  end

  # Always return nil.
  #
  def to_stint_ids
    nil
  end

  # Always return nil.
  #
  def to_i_id
    nil
  end

  # Always return nil.
  #
  def to_i_ids
    nil
  end

  # Always return nil.
  #
  def to_s_id
    nil
  end

  # Always return nil.
  #
  def to_s_ids
    nil
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sixarm_ruby_to_id-2.0.0 lib/sixarm_ruby_to_id/nil.rb
sixarm_ruby_to_id-1.1.3 lib/sixarm_ruby_to_id/nil.rb
sixarm_ruby_to_id-1.1.2 lib/sixarm_ruby_to_id/nil.rb
sixarm_ruby_to_id-1.1.1 lib/sixarm_ruby_to_id/nil.rb
sixarm_ruby_to_id-1.1.0 lib/sixarm_ruby_to_id/nil.rb
sixarm_ruby_to_id-1.0.9 lib/sixarm_ruby_to_id/nil.rb