class Roby::OpenStruct::Observer

Internal data structure used to register the observers defined with on_change

Public Class Methods

new(recursive, block) click to toggle source
# File lib/roby/state/open_struct.rb, line 241
def initialize(recursive, block)
    @recursive, @block = recursive, block
end

Public Instance Methods

call(name, value) click to toggle source
# File lib/roby/state/open_struct.rb, line 244
def call(name, value)
    @block.call(name, value)
end
recursive?() click to toggle source
# File lib/roby/state/open_struct.rb, line 240
def recursive?; !!@recursive end