In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We can include other contexts through the use of the include
directive."
A block of code is set as follows:
require 'rspec' describe 'new RSpec syntax' do it "uses the new assertion syntax" do # new # deprecated expect(1 + 1).to eq(2) # (1 + 1).should == 2 end
Any command-line input or output is written as follows:
# comments to clarify the command $ echo 'Hello' # => Hello
Often, command-line output will be displayed in screenshots to show output more clearly and to discourage cut-and-paste without thinking through the commands. The screenshots will like look the following: