module Rails::Generators::Actions

def lib(filename, data = nil)


end
"# Foreign code is fun"
lib "foreign.rb" do

RUBY
# Foreign code is fun
lib "foreign.rb", <<~RUBY

or as the return value of the block.
Creates a file in +lib/+. The contents can be specified as an argument
def lib(filename, data = nil)
  log :lib, filename
  data ||= yield if block_given?
  create_file("lib/#{filename}", optimize_indentation(data), verbose: false)
end