diff options
| author | Geoff Liu <g@geoffliu.me> | 2015-08-30 14:22:11 -0600 | 
|---|---|---|
| committer | Geoff Liu <g@geoffliu.me> | 2015-08-30 14:22:11 -0600 | 
| commit | eb7e58d5fc649ed2713c7685539bd5edcd9e8ade (patch) | |
| tree | 72a9fe5106bed0735089b5c7a2b22540f7ebb3a7 /ruby.html.markdown | |
| parent | 1d1def16a5d7925bb8f7fba7dc49182e33359e85 (diff) | |
| parent | b124fd58df56a5e1ee9925481fbde1f22ccfb386 (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'ruby.html.markdown')
| -rw-r--r-- | ruby.html.markdown | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/ruby.html.markdown b/ruby.html.markdown index 66a0774d..7bd28d86 100644 --- a/ruby.html.markdown +++ b/ruby.html.markdown @@ -173,6 +173,8 @@ array[1..3] #=> [2, 3, 4]  # Add to an array like this  array << 6 #=> [1, 2, 3, 4, 5, 6] +# Or like this +array.push(6) #=> [1, 2, 3, 4, 5, 6]  # Check if an item exists in an array  array.include?(1) #=> true | 
