README.md in formatted_length-0.0.4 vs README.md in formatted_length-0.0.7

- old
+ new

@@ -24,28 +24,11 @@ #implementation etc... acts_as_formatted_length :foobar end #now usage -example = YourClass.create(length: 70) +example = YourClass.create(foobar: 70) puts example.formatted_length # prints out 01:10 -``` - -If you require a setter, pass :setter => true. -The created setter accpets strings in following manner: -* If is integer (no ':' in string), the value is treated as length in seconds. -* Else, value is deformatted into correct amount of seconds (i.e. "1:01:06" becomes 3666) - -```ruby -#sample class definition -class YourClass -#implementation etc... -acts_as_formatted_length :foobar, setter: true -end - -#now usage -example = YourClass.create(length: 70) -example.formatted_length # = 01:10 example.formatted_length = "1:01:06" puts example.foobar # prints out 3666 ``` ## Example