Skip to main content
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

PS: Also check out this postpost about Ruby

PS: Also check out this post about Ruby

PS: Also check out this post about Ruby

Post Made Community Wiki by Dennis
Updated language, and added info from comment
Source Link
Kyrremann
  • 361
  • 2
  • 5

Snippet 4
puts is used to print a string version of an object with a new line at the end. Short for "put string". Can also be shortened to just p.

Snippet 15
The snippet ARGV[0] ||false checks if ARGV[0] evaluates to true, if not it will return the or valugevalue, false. ARGV is an array containing the arguments sent in at start time. ruby app.rb test will give you 'test' in ARGV[0].

Snippet 4
puts is used to print a string version of an object with a new line at the end. Short for "put string".

Snippet 15
The snippet ARGV[0] ||false checks if ARGV[0] evaluates to true, if not it will return the or valuge, false. ARGV is an array containing the arguments sent in at start time. ruby app.rb test will give you 'test' in ARGV[0].

Snippet 4
puts is used to print a string version of an object with a new line at the end. Short for "put string". Can also be shortened to just p.

Snippet 15
The snippet ARGV[0] ||false checks if ARGV[0] evaluates to true, if not it will return the or value, false. ARGV is an array containing the arguments sent in at start time. ruby app.rb test will give you 'test' in ARGV[0].

added 300 characters in body
Source Link
Kyrremann
  • 361
  • 2
  • 5

Snippet 15
The snippet ARGV[0] ||false checks if ARGV[0] evaluates to true, if not it will return the or valuge, false. ARGV is an array containing the arguments sent in at start time. ruby app.rb test will give you 'test' in ARGV[0].

PS: Also check out this post about Ruby

PS: Also check out this post about Ruby

Snippet 15
The snippet ARGV[0] ||false checks if ARGV[0] evaluates to true, if not it will return the or valuge, false. ARGV is an array containing the arguments sent in at start time. ruby app.rb test will give you 'test' in ARGV[0].

PS: Also check out this post about Ruby

added 764 characters in body
Source Link
Kyrremann
  • 361
  • 2
  • 5
Loading
added 1051 characters in body
Source Link
Kyrremann
  • 361
  • 2
  • 5
Loading
added two urls
Source Link
Kyrremann
  • 361
  • 2
  • 5
Loading
added snippet 7
Source Link
Kyrremann
  • 361
  • 2
  • 5
Loading
added a quote
Source Link
Kyrremann
  • 361
  • 2
  • 5
Loading
added 126 characters in body
Source Link
Kyrremann
  • 361
  • 2
  • 5
Loading
added 126 characters in body
Source Link
Kyrremann
  • 361
  • 2
  • 5
Loading
added 189 characters in body
Source Link
Kyrremann
  • 361
  • 2
  • 5
Loading
Source Link
Kyrremann
  • 361
  • 2
  • 5
Loading