Class: Blogical::Content::Tag

Inherits:
Object
  • Object
show all
Defined in:
app/blogical/content.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#articleObject

Returns the value of attribute article.



137
138
139
# File 'app/blogical/content.rb', line 137

def article
  @article
end

#nameObject

Returns the value of attribute name.



137
138
139
# File 'app/blogical/content.rb', line 137

def name
  @name
end