Class: C::NodeList
- Inherits:
-
Object
- Object
- C::NodeList
- Defined in:
- lib/castaddon.rb
Overview
Modify the NodeArray and NodeChain lists to output correct code when printed to a file.
Instance Method Summary collapse
-
#to_s ⇒ Object
Modify the ‘to_s’ method to output correct code when printed to a file.
Instance Method Details
#to_s ⇒ Object
Modify the ‘to_s’ method to output correct code when printed to a file. Originally, it would separate instances of the list with a ‘,’. Instead, a newline command is added.
28 29 30 |
# File 'lib/castaddon.rb', line 28 def to_s self.join("\n") end |