Permalink
Browse files

Add heading for class usage

  • Loading branch information...
1 parent 9709ddc commit be9930d7522c5c8d99cc4a338251508675be4ea8 @dkubb dkubb committed Jun 8, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 README.md
View
@@ -30,6 +30,9 @@ gem 'virtus'
Examples
--------
+### Using Virtus with Classes
+
+You can create classes extended with virtus and define attributes:
``` ruby
class User
@@ -51,7 +54,7 @@ user.age.class # => Fixnum
user.birthday = 'November 18th, 1983' # => #<DateTime: 1983-11-18T00:00:00+00:00 (4891313/2,0/1,2299161)>
```
-### Using Virtus With Modules
+### Using Virtus with Modules
You can create modules extended with virtus and define attributes for later
inclusion in your classes:

0 comments on commit be9930d

Please sign in to comment.