README.md in egn-1.3.2 vs README.md in egn-1.3.3

- old
+ new

@@ -21,54 +21,54 @@ $ gem install egn ## Usage - require "egn" + require 'egn' # Quickly generate a random number Egn.generate - # => "6101047500" + => '6101047500' # Validate a given number - Egn.validate("6101047500") - # => true + Egn.validate('6101047500') + => true # Create an new EGN object with a random number egn = Egn::Egn.new - # => 9212094524 + => 9212094524 # OR generate EGN for a specific date - egn = Egn::Egn.new({year: 1945, month: 5, day: 8}) - # => 4505085346 + egn = Egn::Egn.new(year: 1945, month: 5, day: 8) + => 4505085346 # OR parse an existing one - egn = Egn.parse("6101047500") - # => 6101047500 + egn = Egn.parse('6101047500') + => 6101047500 egn.birth_date - # => #<Date: 1961-01-04 ((2437304j,0s,0n),+0s,2299161j)> + => #<Date: 1961-01-04 ((2437304j,0s,0n),+0s,2299161j)> egn.year - # => 1961 + => 1961 egn.month - # => 1 + => 1 egn.day - # => 10 + => 10 egn.gender # egn.sex can also be used - # => :male + => :male egn.gender(format: :char) - # => 'm' + => 'm' egn.gender(format: :number) - # => 1 + => 1 egn.valid? - # => true + => true ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`)