class C::Tag
Tag
class
Manages a tag. This should not be created buy the user but retrieved from {C.tag}.
Attributes
name[RW]
The tag’s name. @return [Symbol]
Public Class Methods
new(t)
click to toggle source
Create a Tag
@param t [Symbol] the name of the tag.
# File lib/rub/c.rb, line 158 def initialize(t) @name = t @target = TargetTag.new(t) @target.register end
Public Instance Methods
description()
click to toggle source
# File lib/rub/c.rb, line 148 def description @target.description end
description=(d)
click to toggle source
# File lib/rub/c.rb, line 151 def description=(d) @target.description = d end
require(f)
click to toggle source
Add a target to this tag.
@param f [Pathname,String] The path of the target.
# File lib/rub/c.rb, line 167 def require(f) @target.require f end