class Deadlink::Decorator
Public Class Methods
print_info(path,opts)
click to toggle source
# File lib/deadlink/decorator.rb, line 3 def self.print_info(path,opts) if opts['p'] for_editor(path) else default(path) end end
Private Class Methods
default(path)
click to toggle source
# File lib/deadlink/decorator.rb, line 17 def self.default(path) puts path.link + ' in ' + path.cur_file_path + ' line: ' + path.index.to_s end
for_editor(path)
click to toggle source
# File lib/deadlink/decorator.rb, line 13 def self.for_editor(path) puts '+' + path.index.to_s + " " + path.cur_file_path end