Class: ChkBuild::Target::Result
- Inherits:
-
Object
- Object
- ChkBuild::Target::Result
- Includes:
- Enumerable
- Defined in:
- lib/chkbuild/target.rb
Instance Method Summary collapse
- #add(elt) ⇒ Object
- #each ⇒ Object
-
#initialize ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize ⇒ Result
Returns a new instance of Result.
168 169 170 |
# File 'lib/chkbuild/target.rb', line 168 def initialize @list = [] end |
Instance Method Details
#add(elt) ⇒ Object
172 173 174 |
# File 'lib/chkbuild/target.rb', line 172 def add(elt) @list << elt end |
#each ⇒ Object
176 177 178 |
# File 'lib/chkbuild/target.rb', line 176 def each @list.each {|elt| yield elt } end |