Class: C::TargetTag
Overview
Tag Target
This is the target used for tags.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(t) ⇒ TargetTag
constructor
Create a TargetTag.
-
#require(f) ⇒ Object
Add a target to this tag.
Methods inherited from R::Target
#clean?, #hash_input, #hash_output, #hash_outputs, #hash_self, #register
Constructor Details
#initialize(t) ⇒ TargetTag
Create a TargetTag
116 117 118 119 120 121 122 |
# File 'lib/rub/c.rb', line 116 def initialize(t) t.is_a? Symbol or raise 'Targets can be created with symbols only.' @tag = t @output = Set[t] @input = Set[] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
111 112 113 |
# File 'lib/rub/c.rb', line 111 def description @description end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
108 109 110 |
# File 'lib/rub/c.rb', line 108 def input @input end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
108 109 110 |
# File 'lib/rub/c.rb', line 108 def output @output end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
109 110 111 |
# File 'lib/rub/c.rb', line 109 def tag @tag end |
Instance Method Details
#build ⇒ Object
134 135 136 |
# File 'lib/rub/c.rb', line 134 def build input.each{|i| R::get_target(i).build } end |