Class: ArtDecomp::KISS
- Inherits:
-
Object
- Object
- ArtDecomp::KISS
- Defined in:
- lib/art-decomp/kiss.rb
Instance Method Summary collapse
- #formatted ⇒ Object
-
#initialize(lines) ⇒ KISS
constructor
A new instance of KISS.
Constructor Details
#initialize(lines) ⇒ KISS
Returns a new instance of KISS.
3 4 5 |
# File 'lib/art-decomp/kiss.rb', line 3 def initialize lines @lines = lines end |
Instance Method Details
#formatted ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/art-decomp/kiss.rb', line 7 def formatted @lines.sort! @lines.uniq! drop_overlapping combine_matching @lines.join("\n") + "\n" end |