Sha256: c4696f1974fec282c6e935c9a2a01e45c25a39eb26ebe8d6cf1b840afe4eebdb
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
module MountainView module StyleguideHelper def method_missing(method, *args, &block) if method.to_s.end_with?("_path", "_url") if main_app.respond_to?(method) main_app.send(method, *args) else super end else super end end def respond_to?(method, include_all = false) if method.to_s.end_with?("_path", "_url") if main_app.respond_to?(method, include_all) true else super end else super end end def respond_to_missing?(method, include_all = false) respond_to?(method, include_all) end def prettify_word(word) word.to_s.split("_").map(&:capitalize).join(" ") end def mv_components component_dirs = MountainView.configuration.components_path.join("*") Dir.glob(component_dirs).sort.map do |component_dir| MountainView::Component.new File.basename(component_dir) end end def extra_pages MountainView.configuration.extra_pages end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mountain_view-0.14.0 | app/helpers/mountain_view/styleguide_helper.rb |