Module: DTK::Common::PrettyPrintForm
- Defined in:
- lib/pretty_print_form.rb
Class Method Summary collapse
-
.module_ref(module_name, opts = {}) ⇒ Object
opts can have terms: :namespace :version.
Class Method Details
.module_ref(module_name, opts = {}) ⇒ Object
opts can have terms:
:namespace
:version
24 25 26 27 28 |
# File 'lib/pretty_print_form.rb', line 24 def self.module_ref(module_name, opts = {}) ret = opts[:namespace] ? "#{opts[:namespace]}/#{module_name}" : module_name ret << "(#{opts[:version]})" if opts[:version] ret end |