Class: SubPub::ScopedTopic
- Inherits:
-
Object
- Object
- SubPub::ScopedTopic
- Defined in:
- lib/sub_pub/scoped_topic.rb
Instance Method Summary collapse
- #full_topic ⇒ Object
-
#initialize(topic, scope) ⇒ ScopedTopic
constructor
A new instance of ScopedTopic.
- #topic ⇒ Object
Constructor Details
#initialize(topic, scope) ⇒ ScopedTopic
Returns a new instance of ScopedTopic.
3 4 5 6 |
# File 'lib/sub_pub/scoped_topic.rb', line 3 def initialize(topic, scope) @topic = topic @scope = scope end |
Instance Method Details
#full_topic ⇒ Object
8 9 10 |
# File 'lib/sub_pub/scoped_topic.rb', line 8 def full_topic "#{@scope}::#{@topic}" end |
#topic ⇒ Object
12 13 14 |
# File 'lib/sub_pub/scoped_topic.rb', line 12 def topic @topic end |