Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8cf0b937a0
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (23 sloc) 0.572 kb

Bookland

travis

Bookland provides ISBN and EAN classes in Ruby.

Installation

gem install bookland

Usage

include 'bookland'

isbn = ISBN.new '9780262011532'
isbn.valid? # => true
isbn10 = isbn.to_isbn_10
isbn10.to_s # => "0262011530"

Or use utility methods on the class level:

EAN.valid?  '0814916013890' # => true
ISBN.valid? '0814916013890' # => false
Jump to Line
Something went wrong with that request. Please try again.