Everything about Ruby syntax
Set of rules defining correctly structured programs
The syntax of the Ruby programming language is broadly similar to that of Perl and Python. Class and method definitions are signaled by keywords, whereas code blocks can be defined by either keywords or braces. In contrast to Perl, variables are not obligatorily prefixed with a sigil. When used, the sigil changes the semantics of scope of the variable. For practical purposes there is no distinction between expressions and statements. Line breaks are significant and taken as the end of a statement; a semicolon may be equivalently used. Unlike Python, indentation is not significant. Wikipedia →
🧭 Start here: a 6-step reading path
- Read the overview: Ruby syntaxA 5-minute orientation
- Pick up a classic book: Regular ExpressionThe most-reprinted book on the subject
- Go sideways: GNU SmalltalkA closely related topic
- Go sideways: Entry pointA closely related topic
📖 Definitions
No dictionary entry for this exact phrase.
🏆 Landmark papers (most cited)
- No matching papers found.
📚 Books worth reading
Regular ExpressionTony Stubblebine · 2003
Apache Solr Beginner's GuideAlfredo Serafini · 2013
Apache Solr 3 Enterprise Search ServerDavid Smiley · 2011
Eloquent RubyRuss Olsen · 2011
Ruby Quick Syntax ReferenceMatt Clements · 2014- 📕Adult Coloring Book of 30 Funny Quotes for Syntax LoversRuby Morgan · 2020
- 📕A study to identify the content of linguistically based grammar instruction of a junior high school, 1962-1963Ruby M. Kelley · 1963
The RSpec BookDavid Chelimsky, Dave Astels · 2010
Ranked by number of editions on Open Library, a rough measure of how lasting a book is.
🔗 Related topics
- GNU Smalltalk GNU Smalltalk is an implementation of the Smalltalk programming language by the GNU Project. The implementation, unlike other Smalltalk environments, uses…
- Entry point In computer programming, an entry point is the place in a program where the execution of a program begins, and where the program has access to command…
- Variadic function In mathematics and in computer programming, a variadic function is a function of indefinite arity, i.e., one which accepts a variable number of arguments…
- Function object In computer programming, a function object is a construct allowing an object to be invoked or called as if it were an ordinary function, usually with the…
- Closure (computer programming) In programming languages, a closure, also lexical closure or function closure, is a technique for implementing lexically scoped name binding in a language…
- Python syntax and semantics The syntax of the Python programming language is the set of rules that defines how a Python program will be written and interpreted (by both the runtime…
- PHP syntax and semantics The syntax and semantics of PHP, a programming language, form a set of rules that define how a PHP program can be written and interpreted. Historically…
- Perl language structure The structure of the Perl programming language encompasses both the syntactical rules of the language and the general ways in which programs are organized…