Class: SharingTags::Network::NetworkRunningContext
- Inherits:
-
Object
- Object
- SharingTags::Network::NetworkRunningContext
show all
- Defined in:
- lib/sharing_tags/network.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of NetworkRunningContext.
11
12
13
14
15
|
# File 'lib/sharing_tags/network.rb', line 11
def initialize(network, context)
@network_name = network.name
@context = context
@context_name = @context.name
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *arguments, &block) ⇒ Object
25
26
27
28
|
# File 'lib/sharing_tags/network.rb', line 25
def method_missing(method_name, *arguments, &block)
return unless @context && @context.configuraton
@context.configuraton.running_context.send(method_name, *arguments, &block)
end
|
Instance Method Details
#context ⇒ Object
21
22
23
|
# File 'lib/sharing_tags/network.rb', line 21
def context
@context_name
end
|
#network ⇒ Object
17
18
19
|
# File 'lib/sharing_tags/network.rb', line 17
def network
@network_name
end
|