Class: C::Tag
Overview
Tag class
Manages a tag. This should not be created buy the user but retrieved from tag.
Instance Attribute Summary collapse
-
#name ⇒ Symbol
The tag’s name.
Instance Method Summary collapse
- #description ⇒ Object
- #description=(d) ⇒ Object
-
#initialize(t) ⇒ Tag
constructor
Create a Tag.
-
#require(f) ⇒ Object
Add a target to this tag.
Constructor Details
Instance Attribute Details
#name ⇒ Symbol
The tag’s name.
146 147 148 |
# File 'lib/rub/c.rb', line 146 def name @name end |
Instance Method Details
#description ⇒ Object
148 149 150 |
# File 'lib/rub/c.rb', line 148 def description @target.description end |
#description=(d) ⇒ Object
151 152 153 |
# File 'lib/rub/c.rb', line 151 def description=(d) @target.description = d end |
#require(f) ⇒ Object
Add a target to this tag.
167 168 169 |
# File 'lib/rub/c.rb', line 167 def require(f) @target.require f end |