Class: Riot::Situation

Inherits:
Object
  • Object
show all
Defined in:
lib/riot/situation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#topicObject

Returns the value of attribute topic.



3
4
5
# File 'lib/riot/situation.rb', line 3

def topic
  @topic
end

Instance Method Details

#fail(message) ⇒ Object

Raises:



5
6
7
# File 'lib/riot/situation.rb', line 5

def fail(message)
  raise Failure.new(message)
end