When I create a rails application,
Prefixes:
rails new foo
Is the string "foo" available to my code?
puts "Your app name is " + app_name_bar
Rails.application.class will give you the full name of the application (e.g. YourAppName :: Application).
Rails.application.class
From there you can get the module name with Rails.application.class.parent.
Rails.application.class.parent