Class: KungFigure::Register
- Inherits:
-
Object
- Object
- KungFigure::Register
- Defined in:
- lib/kung_figure.rb
Class Method Summary collapse
Class Method Details
.add(klazz) ⇒ Object
14 15 16 |
# File 'lib/kung_figure.rb', line 14 def add(klazz) items<< klazz end |
.each ⇒ Object
18 19 20 21 22 |
# File 'lib/kung_figure.rb', line 18 def each items.each do |klz| yield klz end end |
.items ⇒ Object
11 12 13 |
# File 'lib/kung_figure.rb', line 11 def items @items ||=[] end |