Commit Graph

87 Commits

Author SHA1 Message Date
Dzianis Dashkevich
b249363a99 Make style fixes to conform to ruby style guide
Made style fixes to conform to Ruby style guide.
Added a reference to a community-driven Ruby coding style guide.
2014-08-19 12:17:27 +03:00
Ariel
933cf6f10d fixed space 2014-03-10 18:06:44 -04:00
Ariel
d25c10969d Added some example code and resources. 2014-03-10 17:05:49 -04:00
David Underwood
02044c1eab Ruby: Adds attr_accessor, attr_reader, and attr_writer to class docs 2013-12-01 21:43:48 -05:00
Jake Romer
9a60d0a6e4 Corrects Array#[,] entry
The #[i,l] method returns a subarray starting at index i and continuing for length l. [source](http://ruby-doc.org/core-1.9.3/Array.html#method-i-5B-5D)
2013-11-20 05:38:46 -05:00
Marcin Wawrzyniak
239595fc59 ADD: "&" and "*" use cases in function parameters 2013-09-29 18:15:16 +01:00
Matthew Johnston
9cc1982c48 Added module extension and inclusion examples
Also added examples for callbacks made when modules are included
and extended.
2013-09-08 11:46:08 -05:00
Marcos Brizeno
e13b5111d5 Adding explanation about variables scope and naming 2013-08-30 21:58:23 -03:00
Geoffrey Roguelon
6062618d35 Fix a missing character in the comment.
remove useless whitespace at the end of the lines.
2013-08-14 22:00:56 +02:00
Nick LaMuro
9fd70ffbb1 Giving myself some credit... I guess 2013-08-13 17:47:52 -05:00
Nick LaMuro
7af884a940 Fixes spacing issues 2013-08-13 17:46:33 -05:00
Nick LaMuro
ea853dfa67 Fixes array typos 2013-08-13 17:42:03 -05:00
Tristan Hume
5c5c8d3c4a Tidy up wording 2013-08-12 15:05:00 -04:00
Tristan Hume
5424b31848 Explain blocks better 2013-08-12 14:53:00 -04:00
m5o
97a99b0ad5 fix indentation by 2 spaces 2013-08-08 12:17:10 +02:00
greybird
80c71ef1c8 Ruby. Difference between class instance variables and class variables 2013-08-07 11:20:20 +04:00
Luke Holder
df90e49572 Fixed comment style 2013-07-30 15:28:40 +08:00
Luke Holder
99e1c31b19 Updated location, and reduced examples
also added array [] access example.
2013-07-30 15:26:51 +08:00
Luke Holder
8c89f3f608 Explained syntactic sugar is really just method calls.
Objects in ruby receive a message via the . (dot) notation. The arithmetic operators are just syntactic sugar of the . message notation.
2013-07-29 16:30:51 +08:00
Alexander Zhuravlev
5267bff2cf An an example of an instance variable assignment 2013-07-17 05:22:32 +04:00
Troels Thomsen
8c1300ba63 Remove end-of-line colon 2013-07-10 19:22:07 +02:00
Adam Bard
f698fb6fbb Merge pull request #110 from noahlz/master
Minor fixes to ruby.html
2013-07-07 23:32:20 -07:00
Adam Bard
cbcf45743a Merge pull request #108 from davefp/patch-3
Get rid of nasty infinite loop in while example
2013-07-07 23:31:53 -07:00
noahlz
d1f9b74644 case statement needs end. Also added else 2013-07-07 18:50:18 -04:00
noahlz
48448599ff s/$/#/ typo 2013-07-05 22:08:46 -04:00
David Underwood
33af584ad4 Get rid of nasty infinite loop in while example 2013-07-05 20:56:02 -04:00
Alexei Sholik
9e4eb846c1 Ruby: nil != false
Instead of saying `nil == false` (which is incorrect), show that negating `nil` and `false` produces `true`. Negating anything else will produce `false`.
2013-07-05 22:18:54 +03:00
Adam
5477292824 Line length edit for ruby 2013-07-03 23:03:25 -07:00
Adam
9ad61b5586 Authors -> Contributors 2013-07-03 22:59:13 -07:00
Adam
3840036912 Ruby updates 2013-07-03 22:53:12 -07:00
David Underwood
2419d8c30a Updates YAML front-matter to match #97 2013-07-03 15:41:06 -04:00
David Underwood
99192fea52 Adds class documentation written by @joelwalden in #95 2013-07-03 15:21:29 -04:00
David Underwood
705e8fd023 Adds emphasis about the object-oriented nature of ruby, and removes references to lesser-used array functions 2013-07-02 13:47:23 -04:00
David Underwood
918123e8ce changes string interpolation text as suggested by @fbernier 2013-07-02 13:24:50 -04:00
David Underwood
07aa1d9337 Adds sections for symbols, hashes, and yields 2013-07-01 12:27:15 -04:00
David Underwood
b9e0c189ee fixes typos in the boolean results 2013-06-29 18:04:37 -04:00
David Underwood
8de5c352bc Initial WIP commit for ruby 2013-06-28 15:57:57 -04:00