Sha256: 1378b48f07af01678a5c96867e26b20a81211b86edfcaeac1bba0d30c2493a70

Contents?: true

Size: 490 Bytes

Versions: 1

Compression:

Stored size: 490 Bytes

Contents

module Pacer::Routes

  # Adds support to a route to store a variable inline during processing. See
  # Pacer::Routes::RouteOperations#as
  module VariableRouteModule
    attr_accessor :variable_name

    def root?
      false
    end

    protected

    def attach_pipe(pipe)
      Pacer::Pipes::VariableStoreIteratorWrapper.new(pipe, vars, @variable_name)
    end

    def has_routable_class?
      false
    end

    def inspect_class_name
      @variable_name.inspect
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pacer-0.9.1.1-java lib/pacer/route/mixin/variable_route_module.rb