Skip to content

Commit

Permalink
Merge pull request #740 from tobarja/Range#to_s
Browse files Browse the repository at this point in the history
Range#to_s
  • Loading branch information
alex committed May 30, 2013
2 parents c6df052 + 8dc9bb4 commit 2eb527c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib-topaz/range.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,8 @@ def ==(other)
end

alias eql? ==

def to_s
"#{self.begin}#{self.exclude_end? ? '...' : '..'}#{self.end}"
end
end
1 change: 0 additions & 1 deletion spec/tags/core/range/to_s_tags.txt

This file was deleted.

0 comments on commit 2eb527c

Please sign in to comment.