This file contains hidden or 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
| class Sample | |
| def hello name | |
| # sc | |
| end | |
| def sum n1, n2 | |
| # sc sum n1, n2 | |
| end |
This file contains hidden or 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
| λ = lambda {|name| "#{name} es un maricon que no se banca el alfabeto griego"} | |
| λ.call('Franquito') | |
| #=> "Franquito es un maricon que no se banca el alfabeto griego" |
This file contains hidden or 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
| puts <<THIS_IS_A_HEREDOC | |
| And this is the content of the heredoc. | |
| It's obviously multi-line. | |
| And it's great for creating help messages and things like that. | |
| THIS_IS_A_HEREDOC | |
| #=> And this is the content of the heredoc. | |
| # It's obviously multi-line. | |
| # And it's great for creating help messages and things like that. |
This file contains hidden or 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
| # upper-camel case | |
| class ClassLikeName | |
| end | |
| # lower-snake case | |
| def method_like_name | |
| return 'method return value' | |
| end | |
| ClassLikeName #=> ClassLikeName |
OlderNewer