Class: RuPov::Group
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Group
constructor
A new instance of Group.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
Instance Method Details
#to_s ⇒ Object
28 29 30 31 32 |
# File 'lib/rupov.rb', line 28 def to_s result = '' @children.each { |child| result << child.to_s.rstrip+"\n" } result end |