Sha256: 00730d051ae98df2221622f98353f18dc93c02d3befa0be06762d032d82be28b
Contents?: true
Size: 552 Bytes
Versions: 4
Compression:
Stored size: 552 Bytes
Contents
module AngularSprinkles module Directive class Controller def initialize(args) @name = args.fetch(:name) @object_wrapper = args.fetch(:object_wrapper) @bind_json_wrapper = args.fetch(:bind_json_wrapper) @call_json_wrapper = args.fetch(:call_json_wrapper) end def bind(attribute = nil) @object_wrapper.new(@name, attribute, @bind_json_wrapper) end def call(function, *input) @object_wrapper.new(@name, function, input, @call_json_wrapper) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems