Skip to content

notwaldorf/ruby-eh

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

ruby-eh.rb

One of the hardships about being Canadian is that most programming languages are quite simply rude. Descriptions like ‘imperative’ and ‘declarative’ are enough to fill even the most impolite of Canadians with a vague sense of discomfort. Fear no more! Ruby is the sort of language that addresses all these concerns, and adds a familiar, maple-syrupy feel to your code.

You're one load "ruby-eh.rb" away from writing the correct and polite code you've always wanted. Here is a sample of what ruby-eh.rb can do for you:

Polite code

giver "maple syrup".please.reverse.eh?

French code

def articles_aleatoires(matrice)
    matrice.echantillon(1 + rand(matrice.compte))
end

Canadian exceptions

# ArgumentError: uncaught throw ArgumentError. Take off, hoser.

Unicode

if ☆ == ☂
    puts ☎
end

Spaces in function names

take off
# >> If you don't mind, ♫ ♪ Coo loo coo coo, coo coo coo coo ♬ ♪
# => nil 

Open issues

There is not a single reference to hockey, curling, or meeses, which by most Canadian standards is unacceptable.

<3,

monica

About

💎 Ruby for Canadians: an instruction manual.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages