Module: Paf::Lineable

Defined in:
lib/paf/lineable.rb

Overview

Processing to format PAF entry lines

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



7
8
9
10
# File 'lib/paf/lineable.rb', line 7

def self.extended(base)
  base.extend Premises
  base.extend ThoroughfareLocality
end

Instance Method Details

#linesObject



12
13
14
15
16
17
18
19
# File 'lib/paf/lineable.rb', line 12

def lines
  [].tap do |lines|
    lines_methods.each do |method|
      value = send(method)
      (lines << value).flatten! unless value.vacant?
    end
  end
end