README.md in iceland-0.1.12 vs README.md in iceland-0.1.13
- old
+ new
@@ -93,11 +93,11 @@
k = Kennitala.new(' 010130-2989')
# => #<Kennitala:0x007fe35d041bc0 @value="0101302989">
# Invalid strings are rejected with an argument error
f = Kennitala.new('010130-2979')
-# ArgumentError: Kennitala is invalid
+# => ArgumentError: Kennitala is invalid
# If no kennitala string is specified, a random one will be generated
r = Kennitala.new
# => #<Kennitala:0x007fc589339f18 @value="2009155509">
@@ -122,14 +122,14 @@
# Get the entity type (results in 'person' or 'company')
k.entity_type
# => "person"
-# It's also possible to use .is_company and .is_person to achieve the same thing
-k.is_company?
+# It's also possible to use .company and .person to achieve the same thing
+k.company?
# => false
-k.is_person?
+k.person?
# => true
# Cast the kennitala to a Date object
k.to_date
# => #<Date: 1930-01-01 ((2425978j,0s,0n),+0s,2299161j)>