Go to main content
Formats
Format
BibTeX
MARCXML
TextMARC
MARC
DublinCore
EndNote
NLM
RefWorks
RIS

Linked e-resources

Details

At a Glance; Contents; Foreword; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Part 1: Foundations and Scaffolding; Chapter 1: Let's Get It Started: Installing Ruby; Installing Ruby; Windows; Mac OS X / macOS; Testing for a Preinstalled Version of Ruby; Installing Ruby on OS X; Installing Ruby from Source on Mac OS X; Linux; Checking If Ruby Is Installed on Linux; Installing Ruby with a Package Manager; Installing Ruby from Source Code; Other Platforms; Summary; Chapter 2: Programming == Joy: A Whistle-Stop Tour of Ruby and Object Orientation

Baby Stepsirb: Interactive Ruby; Ruby Is "English for Computers"; Why Ruby Makes a Great Programming Language; Trails for the Mind; Turning Ideas into Ruby Code; How Ruby Understands Concepts with Objects and Classes; The Making of a Person; Basic Variables; From People to Pets; Structuring Your Pets Logically; Controlling Your Pets; Everything Is an Object; Kernel Methods; Passing Data to Methods; Using the Methods of the String Class; Using Ruby in a Non-Object-Oriented Style; Summary; Chapter 3: Ruby's Building Blocks: Data, Expressions, and Flow Control; Numbers and Expressions

Basic ExpressionsVariables; Comparison Operators and Expressions; Looping Through Numbers with Blocks and Iterators; Floating Point Numbers; Constants; Text and Strings; String Literals; String Expressions; Interpolation; String Methods; Regular Expressions and String Manipulation; Substitutions; Iteration with a Regular Expression; Matching; Arrays and Lists; Basic Arrays; Splitting Strings into Arrays; Array Iteration; Other Array Methods; Array Addition and Concatenation; Array Subtraction and Difference; Checking for an Empty Array; Checking an Array for a Certain Item

Accessing the First and Last Elements of the ArrayReversing the Order of the Array's Elements; Hashes; Basic Hash Methods; Iterating Through Hash Elements; Retrieving Keys; Deleting Hash Elements; Deleting Hash Elements Conditionally; Hashes Within Hashes; Flow Control; if and unless; ?, the Ternary Operator; elsif and case; while and until; Code Blocks; Other Useful Building Blocks; Dates and Times; Large Numbers; Ranges; Symbols; Converting Objects to Other Classes; Summary; Chapter 4: Developing Your First Ruby Application; Working with Source Code Files; Creating a Test File

Visual Studio CodeAlternatives to Linux; A Simple Source Code File; Running Your Source Code; Windows; Mac OS X / macOS; Linux and Other UNIX-Based Systems; Our Application: A Text Analyzer; Required Basic Features; Building the Basic Application; Obtaining Some Dummy Text; Loading Text Files and Counting Lines; Counting Characters; Counting Words; Counting Sentences and Paragraphs; Calculating Averages; The Source Code So Far; Adding Extra Features; Percentage of "Useful" Words; Summarizing by Finding "Interesting" Sentences; Analyzing Files Other Than text.txt; The Completed Program

Browse Subjects

Show more subjects...

Statistics

from
to
Export