First page Back Continue Last page Overview Graphics
Dynamically typed, otherwise known as „duck typing“
- If something looks like a duck and acts like a duck – i.e., if an object responds to a given method – it is a duck. Example:
def add( x, y )
x+y
end
Variables need not be declared, just used when needed, like other dynamic languages (Perl, Python, PHP)