mail us  |  mail this page

products  |  company  |  support  |  downloads  |  isp services  |  contact us

Ruby Glossary

The beginning of our point and click glossary to ruby - we'll see how it goes. We'd like to see some form of feature in the RDOC stuff with user contributions like the PHP manual and if we ever get round to it (unlikely) we'll do some more thinking. If the item below has got a link read it - otherwise put up with our definition. You have been warned!

Glossary Navigation

Select from the range below:

Symbols ?, #, ::, etc. | a - d | e - l | m - r | s - z

Symbols

term parent description
? Core API At the end of a test e.g. has_key? indicates ruby will return a boolean ( 0 = false) else return normal ruby response e.g. 0 = true. This is called a predictate method.
# Core API Used in a string to embed a variable e.g. #{varname}
:: Core API Confusing - well to us (so what's new). Can be used as an alias for '.' but if a class is embedded in a class (a sub-class) then the :: syntax must be used to differentiate from a method. Example:

myinst.each {|x| print x}
# exactly the same as
myinst::each {|x| print x}
# where each is a method  (uses 'def')

# use in a sub-class
class Thing
 class One
 end
end
# is invoked by
inst = Thing::One.new
# if you use Thing.One it will look for a method
% Core API Defines a literal - enclose in []<>() {}:
%q  single quoted string
%Q  double quoted string
%w array of tokens
%r regular expression
%x shell command
<< Core API Append (to a file or array)
myarray << 1 # add new element to array
mystring << "add" # faster that mystring += "add"
< Core API Inherit class methods
class Two
...
end
class One < Two
# class One inherits all the methods of class Two
# plus its own methods
...
end

Glossary Navigation

Select from the range below:

Symbols ?, #, ::, etc. | a - d | e - l | m - r | s - z



Problems, comments, suggestions, corrections (including broken links) or something to add? Please take the time from a busy life to 'mail us' (at top of screen), the webmaster (below) or info-support at zytrax. You will have a warm inner glow for the rest of the day.

Copyright © 1994 - 2008 ZyTrax, Inc.
All rights reserved. Legal and Privacy
site by zytrax
Hosted by super.net.sg
web-master at zytrax
Page modified: November 07 2007.

Tech

tech home
web stuff
dom stuff
css stuff
language stuff
regex stuff
rfc stuff
protocol stuff
cable stuff
lan wiring
rs232 wiring
howto stuff
survival stuff
wireless stuff
ascii codes
data rate stuff
telephony stuff
mechanical stuff
pc stuff
electronic stuff
tech links
open guides
RSS Feed Icon RSS Feed

If you are happy it's OK - but your browser is giving a less than optimal experience on our site. You could, at no charge, upgrade to a W3C STANDARDS COMPLIANT browser such as Mozilla

web zytrax.com
add page to facebook add page to technorati.com add page to digg.com add page to del.icio.us add page to furl.net add page to stumbleupon add page to reddit.com mail this page feature print this page

Resources

Main Ruby site
Ruby extensions
The Book
Ruby Central.org
ruby-doc.org
Ruby Gargen
RCArchive
rubyxml
RubyGems
Ruby on Rails

very useful

things to know
Ruby PLEAC

our pages

our ruby pages
glossary

printer friendly

Print Page

SPF Record Conformant Domain Logo