Module: Skyline::Rendering::Renderer::Helpers

Includes:
Helpers::BreadCrumbHelper, Helpers::ColumnHelper
Defined in:
lib/skyline/rendering/renderer.rb

Overview

The default Helpers module

Class Method Summary collapse

Methods included from Helpers::BreadCrumbHelper

#bread_crumb

Methods included from Helpers::ColumnHelper

#sections_per_column

Class Method Details

.helper(module_name) ⇒ Object



398
399
400
401
402
403
404
405
406
# File 'lib/skyline/rendering/renderer.rb', line 398

def helper(module_name)
  return self.send(:include,module_name) if module_name == Module
  
  module_name = module_name.to_s
  module_name << "_helper" if module_name !~ /_helper$/
  module_name = module_name.camelize
  module_name = "::#{module_name}" if module_name !~ /^::/
  self.send(:include, module_name.constantize)      
end