module Modifiers::Deprecated
Private Instance Methods
file()
click to toggle source
# File lib/modifiers/deprecated.rb, line 11 def file match_caller(/(.*?):/i) end
kaller()
click to toggle source
# File lib/modifiers/deprecated.rb, line 7 def kaller caller[4] end
line()
click to toggle source
# File lib/modifiers/deprecated.rb, line 15 def line match_caller(/:(\d+).*?$/i) end
location()
click to toggle source
# File lib/modifiers/deprecated.rb, line 23 def location [file, line].join(':') end
match_caller(pattern)
click to toggle source
# File lib/modifiers/deprecated.rb, line 19 def match_caller(pattern) kaller.match(pattern)[1].to_s end
target()
click to toggle source
# File lib/modifiers/deprecated.rb, line 27 def target is_a?(Module) ? "#{self}." : "#{self.class}#" end