Sha256: 71c50684a413bcc5472cd2008e434c6e24a70ca9dfbdb12df2f307d78691920c
Contents?: true
Size: 574 Bytes
Versions: 3
Compression:
Stored size: 574 Bytes
Contents
module Middleman module Sprockets class Extension module ExposeMiddlemanHelpers def mm_context @_mm_context ||= app.template_context_class.new(app, current_path: current_path) end def method_missing method, *args, &block if mm_context.respond_to?(method) return mm_context.send method, *args, &block end super end def respond_to? method, include_private=false super || mm_context.respond_to?(method, include_private) end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems