Sha256: f28fe292a60aa24d3f8414c390bf2cc20d1937eb05780ec9fb9c443887879b57

Contents?: true

Size: 401 Bytes

Versions: 14

Compression:

Stored size: 401 Bytes

Contents

module AngularSprinkles
  module Helpers
    module BindHelper
      def bind(*input)
        camelized = input.map(&:to_s).map { |i| i.camelize(:lower) }

        register_service = ObjectKeyWrapper.new(*camelized, JavaScript::RegisterVariable)
        @_sprinkles.content_yielder.call(register_service)

        ObjectKeyWrapper.new(*camelized, JavaScript::BindVariable)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
angular_sprinkles-0.2.11 lib/angular_sprinkles/helpers/bind_helper.rb
angular_sprinkles-0.2.10 lib/angular_sprinkles/helpers/bind_helper.rb
angular_sprinkles-0.2.9 lib/angular_sprinkles/helpers/bind_helper.rb
angular_sprinkles-0.2.8 lib/angular_sprinkles/helpers/bind_helper.rb
angular_sprinkles-0.2.7 lib/angular_sprinkles/helpers/bind_helper.rb
angular_sprinkles-0.2.6 lib/angular_sprinkles/helpers/bind_helper.rb
angular_sprinkles-0.2.5 lib/angular_sprinkles/helpers/bind_helper.rb
angular_sprinkles-0.2.4 lib/angular_sprinkles/helpers/bind_helper.rb
angular_sprinkles-0.2.3 lib/angular_sprinkles/helpers/bind_helper.rb
angular_sprinkles-0.2.2 lib/angular_sprinkles/helpers/bind_helper.rb
angular_sprinkles-0.2.1 lib/angular_sprinkles/helpers/bind_helper.rb
angular_sprinkles-0.2.0 lib/angular_sprinkles/helpers/bind_helper.rb
angular_sprinkles-0.1.1 lib/angular_sprinkles/helpers/bind_helper.rb
angular_sprinkles-0.1.0 lib/angular_sprinkles/helpers/bind_helper.rb