class Thor::Actions::EmptyDirectory

def convert_encoded_instructions(filename)


get the exception with the corresponding error message.
The method referenced by %-string SHOULD be public. Otherwise you

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|
    call_public_method($1.strip) or initial_string
  end
end