Ruby pocket reference

Although Ruby is an easy language to learn, in the heat of action you may find that you can't remember the correct syntax for a conditional or the name of a method. This handy pocket reference offers brief yet clear explanations of Ruby's core components, from operators to reserved words...

Descripción completa

Detalles Bibliográficos
Autor principal: Fitzgerald, Michael, 1957- (-)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Sebastopol, California : O'Reilly 2007.
Edición:First edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627052206719
Tabla de Contenidos:
  • Contents; Ruby Pocket Reference; Conventions Used in This Book; Comments and Questions; Acknowledgments; Running Ruby; Running the Ruby Interpreter; Using a Shebang Line on Unix/Linux; Associating File Types on Windows; Reserved Words; Operators; Comments; Numbers; Variables; Local Variables; Instance Variables; Class Variables; Global Variables; Constants; Parallel Assignment of Variables; Symbols; Predefined Variables; Pseudovariables; Global Constants; Ranges; Methods; Parentheses; Return Values; Method Name Conventions; Default Arguments; Variable Arguments; Aliasing Methods; Blocks
  • The yield statementProcs; Conditional Statements; The if Statement; Negation; Multiple tests; Statement modifier for if; The else statement; The elsif statement; The unless Statement; Statement modifier for unless; The while Statement; Statement modifier for while; The until Statement; Statement modifier for until; The case Statement; The for Loop; The Ternary Operator; Executing Code Before or After a Program; Classes; Instance Variables; Accessors; Class Variables; Class Methods; Singletons; Inheritance; Load path; Public, Private, or Protected; Modules and Mixins; Files
  • Creating a New FileOpening an Existing File; ARGV and ARGF; Renaming and Deleting Files; File Inquiries; File Modes and Ownership; The IO Class; Exception Handling; The rescue and ensure Clauses; The raise Method; The catch and throw Methods; Object Class; Object Instance Methods; Kernel Module; Sprintf flags and field types; String Class; Expression Substitution; General Delimited Strings; Here Documents; Escape Characters; Character Encoding; Regular Expressions; String Methods; String class methods; String instance methods; String unpack directives; Array Class; Creating Arrays
  • Array Class MethodsArray Instance Methods; Array pack directives; Hash Class; Creating Hashes; Hash Class Methods; Hash Instance Methods; Time Formatting Directives; Interactive Ruby (irb); Ruby Debugger; Ruby Documentation; RDoc Options; RubyGems; Rake; Ruby Resources; Glossary; Index