Sha256: 7e3575ba165df83daa2d3971dadc7eadbccc4266b4698df3957496fc51e57f1f

Contents?: true

Size: 356 Bytes

Versions: 6

Compression:

Stored size: 356 Bytes

Contents

module Pakyow
  module Presenter
    class ViewContext
      include Helpers
      
      def initialize(context)
        @context = context
        self
      end
      
      def context
        @context
      end
      
      def method_missing(method, *args)
        Pakyow.app.presenter.current_context.send(method, *args)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pakyow-presenter-0.8rc1 pakyow-presenter/lib/presenter/view_context.rb
pakyow-presenter-0.7.2 pakyow-presenter/lib/presenter/view_context.rb
pakyow-presenter-0.7.1 pakyow-presenter/lib/presenter/view_context.rb
pakyow-presenter-0.7.0 pakyow-presenter/lib/presenter/view_context.rb
pakyow-presenter-0.6.3.1 pakyow-presenter/lib/presenter/view_context.rb
pakyow-presenter-0.6.1 pakyow-presenter/lib/presenter/view_context.rb