Difference between revisions of "Ruby Cheatsheet"

From Nerdica Wiki
Jump to: navigation, search
(Creation added sections.)
 
(Added information.)
 
Line 1: Line 1:
 
== Operators ==
 
== Operators ==
 +
 +
<pre>
 +
** !  ~  *  /  %  +  -  &
 +
<< >> |  ^  >  >= <  <= <=>
 +
|| != =~ !~ && += -= == ===
 +
.. ... not and or
 +
</pre>
  
 
== Keywords ==
 
== Keywords ==
 +
 +
<pre>
 +
alias  and    BEGIN  begin  break  case    class  def    defined
 +
do      else    elsif  END    end    ensure  false  for    if
 +
in      module  next    nil    not    or      redo    rescue  retry
 +
return  self    super  then    true    undef  unless  until  when
 +
while  yield
 +
</pre>

Latest revision as of 00:38, 27 November 2009

Operators

** !  ~  *  /  %  +  -  &
<< >> |  ^  >  >= <  <= <=>
|| != =~ !~ && += -= == ===
.. ... not and or

Keywords

alias   and     BEGIN   begin   break   case    class   def     defined
do      else    elsif   END     end     ensure  false   for     if
in      module  next    nil     not     or      redo    rescue  retry
return  self    super   then    true    undef   unless  until   when
while   yield