Commit 4229164
authored
* This will allow sub-classing `Addressable::URI` and have the
sub-classes name show up in the `inspect` output.
class CustomURL < Addressable::URI
def custom_method
...
end
end
uri = CustomURL.parse("https://example.com")
# => #<CustomURL:0x1824 URI:https://example.com>
1 parent 96c9da5 commit 4229164
2 files changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2382 | 2382 | | |
2383 | 2383 | | |
2384 | 2384 | | |
2385 | | - | |
| 2385 | + | |
2386 | 2386 | | |
2387 | 2387 | | |
2388 | 2388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1757 | 1757 | | |
1758 | 1758 | | |
1759 | 1759 | | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
1760 | 1773 | | |
1761 | 1774 | | |
1762 | 1775 | | |
| |||
0 commit comments