-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Allow built-in classes to be redefined with extra parameters.
Must be called with `main::ClassName(...)`. Example: class String(a,b) { method to_s { "String(#{a.dump}, #{b.dump})" } method in_blue { "#{self} in blue" } } var a = String("foo") # calls the String class var b = main::String("foo", "bar") # calls the user-defined class with two parameters say a #=> foo say b.in_blue #=> String("foo", "bar") in blue
- Loading branch information
Showing
3 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters