Class: Monster::Author
- Inherits:
-
Object
- Object
- Monster::Author
- Defined in:
- lib/monster/author.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ Author
constructor
A new instance of Author.
- #name ⇒ Object
- #page ⇒ Object
Constructor Details
#initialize(name) ⇒ Author
5 6 7 |
# File 'lib/monster/author.rb', line 5 def initialize(name) @name = name end |
Instance Method Details
#name ⇒ Object
9 10 11 |
# File 'lib/monster/author.rb', line 9 def name @name end |
#page ⇒ Object
13 14 15 |
# File 'lib/monster/author.rb', line 13 def page @page ||= name.pagefy end |