Class: Article
- Inherits:
-
Object
- Object
- Article
- Defined in:
- lib/article.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#content ⇒ Object
Returns the value of attribute content.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title) ⇒ Article
constructor
A new instance of Article.
Constructor Details
#initialize(title) ⇒ Article
Returns a new instance of Article.
5 6 7 |
# File 'lib/article.rb', line 5 def initialize(title) @title = title end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
2 3 4 |
# File 'lib/article.rb', line 2 def category @category end |
#content ⇒ Object
Returns the value of attribute content.
2 3 4 |
# File 'lib/article.rb', line 2 def content @content end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/article.rb', line 3 def title @title end |