Sha256: 17015fccb55464e3c09168c26da509cf172f8f4576005e5d76dd50ec073ed83d

Contents?: true

Size: 396 Bytes

Versions: 24

Compression:

Stored size: 396 Bytes

Contents

class Range

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

  def to_r
    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

24 entries across 23 versions & 2 rubygems

Version Path
facets-2.9.3 lib/core/facets/range/to_r.rb
facets-2.9.2 lib/core/facets/range/to_r.rb
facets-2.9.2 src/core/facets/range/to_r.rb
facets-2.9.1 lib/core/facets/range/to_r.rb
facets-2.9.0 lib/core/facets/range/to_r.rb
facets-2.9.0.pre.2 lib/core/facets/range/to_r.rb
facets-2.9.0.pre.1 lib/core/facets/range/to_r.rb
facets-2.8.4 lib/core/facets/range/to_r.rb
facets-2.8.3 lib/core/facets/range/to_r.rb
facets-2.8.2 lib/core/facets/range/to_r.rb
facets-2.8.1 lib/core/facets/range/to_r.rb
facets-2.8.0 lib/core/facets/range/to_r.rb
facets-2.7.0 lib/core/facets/range/to_r.rb
facets-2.6.0 lib/core/facets/range/to_r.rb
facets-2.4.0 lib/facets/range/to_r.rb
facets-2.4.1 lib/facets/range/to_r.rb
facets-2.4.2 lib/core/facets/range/to_r.rb
facets-2.4.4 lib/core/facets/range/to_r.rb
facets-2.4.3 lib/core/facets/range/to_r.rb
facets-2.5.1 lib/core/facets/range/to_r.rb