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



374
375
376
377
378
379
380
381
382
# File 'lib/skyline/rendering/renderer.rb', line 374

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