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
def Context roles, verbs | |
lc_roles=roles.map{|role| | |
role.downcase.gsub("::","__") | |
} | |
sym_roles=lc_roles.map{|role| | |
":"+role | |
}.join(',') | |
at_roles=lc_roles.map{|role| | |
"@"+role | |
} |
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
=begin | |
endless.rb is a pre-processor for ruby which allows you to use python-ish | |
indentation to delimit scopes, instead of having to type 'end' every time. | |
Basically, this makes the end keyword optional. If you leave off the | |
end, the preprocessor inserts an end for you at the next line indented | |
at or below the level of indentation of the line which started the scope. | |
End is optional, so you can still write things like this: | |
begin |