module Nydp::PluginHelper

Public Instance Methods

base_path() click to toggle source
# File lib/nydp/plugin.rb, line 9
def base_path ; "" ; end
file_readers(filenames, bp=base_path) click to toggle source
# File lib/nydp/plugin.rb, line 11
def file_readers filenames, bp=base_path
  filenames.map { |f| Nydp::FileReader.new(f.gsub(bp, ""), f) }
end
relative_path(name) click to toggle source
# File lib/nydp/plugin.rb, line 15
def relative_path name
  # File.join File.expand_path(File.dirname(__FILE__)), name
  File.join File.expand_path(File.dirname(caller[0].split(/:\d+:/)[0])), name
end