attribute abbreviations

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Defines the current abbreviations as an array. This is only used if extra_space is turned on.

If one is abbreviating “President” as “Pres.” (abbreviations = [“Pres”]), then the results of formatting will be as illustrated in the table below:

extra_space  |  include?        |  !include?
  true       |  Pres. Lincoln   |  Pres.  Lincoln
  false      |  Pres. Lincoln   |  Pres. Lincoln
Default

{}

Used in

#format, #paragraphs

Type at least 2 characters to search.

↑↓ navigate · open · esc close