Class: Module

Inherits:
Object show all
Includes:
Roby::Models::TaskServiceDefinitionDSL
Defined in:
lib/roby/support.rb,
lib/roby/actions/library.rb,
lib/roby/distributed_object.rb,
lib/roby/droby/marshallable.rb,
lib/roby/transaction/proxying.rb,
lib/roby/droby/enable.rb

Instance Method Summary collapse

Methods included from Roby::Models::TaskServiceDefinitionDSL

#task_service

Instance Method Details

#action_library(name = nil, &block) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/roby/actions/library.rb', line 11

def action_library(name = nil, &block)
    if name
        create_and_register_submodel(self, name, Roby::Actions::Library, &block)
    else
        extend Roby::Actions::Models::Interface
        extend MetaRuby::ModelAsModule
        extend MetaRuby::Registration
        self.supermodel = Roby::Actions::Library
        Roby::Actions::Library.register_submodel(self)
    end
end

#droby_dump(dest) ⇒ Object



14
15
16
# File 'lib/roby/droby/enable.rb', line 14

def droby_dump(dest)
    raise "can't dump modules (#{self})"
end

#droby_marshallable?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/roby/droby/marshallable.rb', line 10

def droby_marshallable?
    false
end

#each_fullfilled_model {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Module)

    the object that the method was called on



34
35
36
37
38
# File 'lib/roby/support.rb', line 34

def each_fullfilled_model
    return enum_for(__method__) unless block_given?

    yield self
end

#private_model?Boolean

There are currently no way to make a module private

Returns:

  • (Boolean)


29
30
31
# File 'lib/roby/distributed_object.rb', line 29

def private_model?
    false
end

#proxy_for(real_klass) ⇒ Object

Declare that proxy_klass should be used to wrap objects of real_klass. Order matters: if more than one wrapping matches, we will use the one defined last.



7
8
9
# File 'lib/roby/transaction/proxying.rb', line 7

def proxy_for(real_klass)
    Roby::Transaction::Proxying.define_proxying_module(self, real_klass)
end