class AngularSprinkles::Element::Scope
Public Class Methods
new(args)
click to toggle source
# File lib/angular_sprinkles/element/scope.rb, line 4 def initialize(args) @base = args.fetch(:base) @object_wrapper = args.fetch(:object_wrapper) @bind_json_wrapper = args.fetch(:bind_json_wrapper) @call_json_wrapper = args.fetch(:call_json_wrapper) end
Public Instance Methods
bind(attribute = nil)
click to toggle source
# File lib/angular_sprinkles/element/scope.rb, line 11 def bind(attribute = nil) @object_wrapper.new(@base, attribute, @bind_json_wrapper) end
call(function, *input)
click to toggle source
# File lib/angular_sprinkles/element/scope.rb, line 15 def call(function, *input) @object_wrapper.new(@base, function, input, @call_json_wrapper) end