View Source ExKits.Macros.Constants (lib_oss v0.1.1)

defmodule MyApp.Constant do import Constants

const :facebook_url, "http://facebook.com/rohanpujaris" end

defmodule MyApp do require MyApp.Constant @facebook_url MyApp.Constant.facebook_url # You can use this line anywhere to get the facebook url. end

Summary

Functions

Link to this macro

const(const_name, const_value)

View Source (macro)