initializer(filename, data=nil, &block)
Instance Public methods
Create a new initializer with the provided code (either in a block or a
string).
initializer("globals.rb") do
data = ""
['MY_WORK', 'ADMINS', 'BEST_COMPANY_EVAR'].each do |const|
data << "#{const} = :entp\n"
end
data
end
initializer("api.rb", "API_KEY = '123456'")