Ruby
Ruby
/usr/bin/ruby
PHP.rb
- dynamically typed
- controll access : public, protected and
private
- some vars start $
- string interpolation and : #{foo}
- true, false
- [] ...
just that
-
Everything is an Object
class Numeric < Parintele
def to_square
self * self
end
end
2.to_square => 4
codingguidelines
- localVariable
-@instanceVariable
-@@classVariable
-$globalVariable
-CONSTANT
-ClassName
method_name
if/unless/ ELSIF
case/when/then