Class: ArtDecomp::KISS

Inherits:
Object
  • Object
show all
Defined in:
lib/art-decomp/kiss.rb

Instance Method Summary collapse

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

#formattedObject



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