Sha256: b6cd961b8d542ae8c76fa63334e0ba094caa0ccc400759b116cde98d8b091a4b

Contents?: true

Size: 466 Bytes

Versions: 1

Compression:

Stored size: 466 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: FancyEnumerable

  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.5.0 lib/range.fy