Sha256: 5962d816bbfde4ef37ab682375ead5e7b4482dc11615fa260622e76ef86f333f

Contents?: true

Size: 497 Bytes

Versions: 5

Compression:

Stored size: 497 Bytes

Contents

module Ovto
  # Base class for ovto actions.
  class Actions
    # WiredActions must be set after initialization
    # (this cannot be an argument of #initialize because Actions and
    # WiredActions have references to each other)
    attr_writer :wired_actions

    def actions
      @wired_actions
    end

    def state
      @wired_actions._app.state
    end

    def middleware_name
      WiredActionSet::I_AM_APP_NOT_A_MIDDLEWARE
    end

    def middleware_path
      []
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ovto-0.7.0 lib/ovto/actions.rb
ovto-0.6.2 lib/ovto/actions.rb
ovto-0.6.1 lib/ovto/actions.rb
ovto-0.6.0 lib/ovto/actions.rb
ovto-0.6.0.rc1 lib/ovto/actions.rb