class Bundler::Thor::Actions::EmptyDirectory

def convert_encoded_instructions(filename)


The method referenced can be either public or private.

user.rb

return value (should be String) of #file_name:
It calls #file_name from the base and replaces %-string with the

%file_name%.rb

Filenames in the encoded form are converted. If you have a file:
def convert_encoded_instructions(filename)
  filename.gsub(/%(.*?)%/) do |initial_string|
    method = $1.strip
    base.respond_to?(method, true) ? base.send(method) : initial_string
  end
end