Class: Glimmer::DataBinding::Observer::Registration

Inherits:
Struct
  • Object
show all
Defined in:
lib/glimmer/data_binding/observer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



49
50
51
# File 'lib/glimmer/data_binding/observer.rb', line 49

def args
  @args
end

#observableObject

Returns the value of attribute observable

Returns:

  • (Object)

    the current value of observable



49
50
51
# File 'lib/glimmer/data_binding/observer.rb', line 49

def observable
  @observable
end

#observerObject

Returns the value of attribute observer

Returns:

  • (Object)

    the current value of observer



49
50
51
# File 'lib/glimmer/data_binding/observer.rb', line 49

def observer
  @observer
end

Instance Method Details

#deregisterObject Also known as: unregister, unobserve



50
51
52
# File 'lib/glimmer/data_binding/observer.rb', line 50

def deregister
  observer.unobserve(observable, *args)
end