Class: Blogical::Content::Tag
- Inherits:
-
Object
- Object
- Blogical::Content::Tag
- Defined in:
- app/blogical/content.rb
Instance Attribute Summary collapse
-
#article ⇒ Object
Returns the value of attribute article.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(article, name) ⇒ Tag
constructor
A new instance of Tag.
Constructor Details
#initialize(article, name) ⇒ Tag
Returns a new instance of Tag.
139 140 141 |
# File 'app/blogical/content.rb', line 139 def initialize(article, name) @article, @name = article, name end |
Instance Attribute Details
#article ⇒ Object
Returns the value of attribute article.
137 138 139 |
# File 'app/blogical/content.rb', line 137 def article @article end |
#name ⇒ Object
Returns the value of attribute name.
137 138 139 |
# File 'app/blogical/content.rb', line 137 def name @name end |