Sha256: 1fd793a79dbb3fd36dfc42ea0ec5548a74fcd4e28acda3a10b9b0858eea227f5

Contents?: true

Size: 630 Bytes

Versions: 24

Compression:

Stored size: 630 Bytes

Contents

# Jets::Builders::ShimVars::Shared.new(fun)
#
#   @deducer.functions.each do |function_name|
#     @deducer.handler_for(function_name)
#   end
#
# Implements:
#
#   functions
#   handler_for(function_name)
#   js_path
#
module Jets::Builders::ShimVars
  class Shared < Base
    # fun is a Jets::Stack::Function
    def initialize(fun)
      @fun = fun
    end

    def functions
      [@fun.meth] # function_names
    end

    # dont need function_name arg but keeping the same interface as parent class
    def handler_for(function_name)
      @fun.handler_dest
    end

    def js_path
      @fun.handler_dest
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
jets-1.1.5 lib/jets/builders/shim_vars/shared.rb
jets-1.1.4 lib/jets/builders/shim_vars/shared.rb
jets-1.1.3 lib/jets/builders/shim_vars/shared.rb
jets-1.1.2 lib/jets/builders/shim_vars/shared.rb
jets-1.1.1 lib/jets/builders/shim_vars/shared.rb
jets-1.1.0 lib/jets/builders/shim_vars/shared.rb
jets-1.0.18 lib/jets/builders/shim_vars/shared.rb
jets-1.0.17 lib/jets/builders/shim_vars/shared.rb
jets-1.0.16 lib/jets/builders/shim_vars/shared.rb
jets-1.0.15 lib/jets/builders/shim_vars/shared.rb
jets-1.0.13 lib/jets/builders/shim_vars/shared.rb
jets-1.0.12 lib/jets/builders/shim_vars/shared.rb
jets-1.0.11 lib/jets/builders/shim_vars/shared.rb
jets-1.0.10 lib/jets/builders/shim_vars/shared.rb
jets-1.0.9 lib/jets/builders/shim_vars/shared.rb
jets-1.0.8 lib/jets/builders/shim_vars/shared.rb
jets-1.0.7 lib/jets/builders/shim_vars/shared.rb
jets-1.0.6 lib/jets/builders/shim_vars/shared.rb
jets-1.0.5 lib/jets/builders/shim_vars/shared.rb
jets-1.0.4 lib/jets/builders/shim_vars/shared.rb