Sha256: 99bc01a96fa1047a9fe01baab48f95514798d67939e32c0559bd941139657d96

Contents?: true

Size: 453 Bytes

Versions: 1

Compression:

Stored size: 453 Bytes

Contents

class Range {
  """
  Class of Range values. Are created by using Range literal syntax in Fancy.

  Example:
        (10..100) # Range from 10 to 100
        # the following code does the same as above:
        Range new: 10 to: 100
  """

  include: Fancy Enumerable

  def to_s {
    """
    Same as Range#inspect
    """

    inspect
  }

  def inspect {
    """
    @return @String@ representation of @self.
    """

    "(#{@start}..#{@end})"
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fancy-0.10.0 lib/range.fy