Sha256: 5a667e4a6429c16ea2cf132d32445bcb0a6d993a258d1fa154b3cc68414753af

Contents?: true

Size: 350 Bytes

Versions: 3

Compression:

Stored size: 350 Bytes

Contents

class Range

  def to_s
    `var str = #{`self.$beg`.to_s};
    var str2 = #{`self.$end`.to_s};
    var join = self.$exc ? '...' : '..';
    return str + join + str2;`
  end

  def inspect
    `var str = #{`self.$beg`.inspect};
    var str2 = #{`self.$end`.inspect};
    var join = self.$exc ? '...' : '..';
    return str + join + str2;`
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
opal-0.3.2 gems/core/lib/core/range.rb
opal-0.3.1 gems/core/lib/core/range.rb
opal-0.3.0 gems/core/lib/core/range.rb