Sha256: ab91b56e7636120a55aeb28513d0004ab711af16480581109886d4136e69277f

Contents?: true

Size: 398 Bytes

Versions: 3

Compression:

Stored size: 398 Bytes

Contents

class Range

  # A thing really should know itself.
  # This simply returns _self_.
  #
  # CREDIT: Trans

  def to_rng
    self
  end

  # A thing really should know itself.
  # This simply returns _self_.
  #
  # Note: This does not internally effect the Ruby
  # interpretor such that it can coerce Range-like
  # objects into a Range.
  #
  # CREDIT: Trans

  def to_range
    self
  end

end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 lib/core/facets/range/to_rng.rb
facets-3.1.0 lib/core/facets/range/to_rng.rb
facets-3.0.0 lib/core/facets/range/to_rng.rb