Sha256: 8bcc091f139bf1870983c242cf3ee3cced2d4039546ea891236ce1f052efccd6

Contents?: true

Size: 360 Bytes

Versions: 26

Compression:

Stored size: 360 Bytes

Contents

require 'delegate'
require 'after_do'
require 'husky/pass_along'

module Husky

  class Responder < SimpleDelegator
    extend AfterDo

    attr_reader :context

    def initialize(context)
      @context = context
      super
    end

  end

end

Husky::Responder.after :initialize do |*, responder|
  PassAlong.all_variables(responder, responder.context)
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
husky-0.5.15 lib/husky/responder.rb
husky-0.5.14 lib/husky/responder.rb
husky-0.5.13 lib/husky/responder.rb
husky-0.5.12 lib/husky/responder.rb
husky-0.5.11 lib/husky/responder.rb
husky-0.5.10 lib/husky/responder.rb
husky-0.5.9 lib/husky/responder.rb
husky-0.5.8 lib/husky/responder.rb
husky-0.5.7 lib/husky/responder.rb
husky-0.5.6 lib/husky/responder.rb
husky-0.5.5 lib/husky/responder.rb
husky-0.5.4 lib/husky/responder.rb
husky-0.5.3 lib/husky/responder.rb
husky-0.5.1 lib/husky/responder.rb
husky-0.5.0 lib/husky/responder.rb
husky-0.4.9 lib/husky/responder.rb
husky-0.4.8 lib/husky/responder.rb
husky-0.4.7 lib/husky/responder.rb
husky-0.4.6 lib/husky/responder.rb
husky-0.4.5 lib/husky/responder.rb