Skip to content
Helper methods for generating text that conforms to "The New York Times Manual of Style and Usage"
CSS Ruby
Latest commit 8da171d May 13, 2014 @ascheink Merge pull request #4 from mtigas/master
prevent instance variable collision: `@states`
Failed to load latest commit information.
lib
test
.gitignore
README.rdoc
Rakefile
docco.css
index.html
nytimes-style.gemspec

README.rdoc

nytimes-style

Helper methods for generating text that conforms to The New York Times Manual of Style and Usage.

Annotated source code: ascheink.github.com/nytimes-style

INSTALLATION

gem install nytimes-style

USAGE

require 'nytimes-style'
include Nytimes::Style

>> nytimes_date Date.today
# => "May 12, 2011"

>> nytimes_date Date.today, :hide_current_year => true, :day_of_week => true
# => "Wednesday, June 15"

>> nytimes_time Time.now, :hide_abbreviation => false
# => "2:30 p.m."

>> nytimes_state_abbrev 'AZ'
# => "Ariz."  

>> nytimes_state_name '55'
# => "Wisconsin"

CONTRIBUTORS

Andrei Scheinkman, andreischeinkman@gmail.com

Tyson Evans, tyson.evans@nytimes.com

Derek Willis, dwillis@nytimes.com

Something went wrong with that request. Please try again.