Sha256: 864f2b76c93b914e5a14433b114a43b50f44ec04168e3bdbc7a04d853fbb4699

Contents?: true

Size: 296 Bytes

Versions: 7

Compression:

Stored size: 296 Bytes

Contents

module Rack::App::FrontEnd::SyntaxSugar::DSL

  def helper(symbolic_name)
    module_name = "Rack::App::FrontEnd::Helpers::#{symbolic_name.to_s.split('_').collect(&:capitalize).join}"
    ObjectSpace.each_object(Module).select{|m| not m.is_a?(Class) }.find {|m| m.to_s == module_name }
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rack-app-front_end-0.22.2 lib/rack/app/front_end/syntax_sugar/dsl.rb
rack-app-front_end-0.22.1 lib/rack/app/front_end/syntax_sugar/dsl.rb
rack-app-front_end-0.22.0 lib/rack/app/front_end/syntax_sugar/dsl.rb
rack-app-front_end-0.21.0 lib/rack/app/front_end/syntax_sugar/dsl.rb
rack-app-front_end-0.20.0 lib/rack/app/front_end/syntax_sugar/dsl.rb
rack-app-front_end-0.19.0 lib/rack/app/front_end/syntax_sugar/dsl.rb
rack-app-front_end-0.18.0 lib/rack/app/front_end/syntax_sugar/dsl.rb