Skip to content

Instantly share code, notes, and snippets.

@torsday
Created August 22, 2013 23:23
Show Gist options
  • Select an option

  • Save torsday/6313947 to your computer and use it in GitHub Desktop.

Select an option

Save torsday/6313947 to your computer and use it in GitHub Desktop.
Ruby #references

Ruby

Basics

Running a ruby file from the command line

$ ruby <filename.rb>

Function Syntax

def functionname(variable)
   return <value>
end

see also: comparison of function syntax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment