Module: ScriptLines

Defined in:
lib/innate/scriptlines.rb

Class Method Summary collapse

Class Method Details

.displayObject



18
19
20
21
# File 'lib/innate/scriptlines.rb', line 18

def display
  SCRIPT_LINES__.collect.sort.each {|k,v| puts "#{v.class} #{k}"}
  SCRIPT_LINES__.length
end

.handle_odd_pathsObject



7
8
9
10
11
12
13
14
15
# File 'lib/innate/scriptlines.rb', line 7

def handle_odd_paths
  SCRIPT_LINES__.select {|k,v| v.is_a? Array}.each do |k, v|
    x = SCRIPT_LINES__[File.expand_path(k)]
    unless x and x.is_a? FileLines
      x = FileLines.new(k)
    end
    SCRIPT_LINES__[k] = x     
  end
end