class Riposte::Reaction
Attributes
params[RW]
type[RW]
Public Class Methods
new(type, *params)
click to toggle source
# File lib/riposte/reaction.rb, line 7 def initialize(type, *params) self.type = type self.params = params end
Public Instance Methods
==(other)
click to toggle source
# File lib/riposte/reaction.rb, line 22 def ==(other) [self.class, self.type, self.params] == [other.class, other.type, other.params] end
method_missing(name, *) { |*params| ... }
click to toggle source
# File lib/riposte/reaction.rb, line 12 def method_missing(name, *) if name == type yield(*params) if block_given? end end
respond_to_missing?(*)
click to toggle source
# File lib/riposte/reaction.rb, line 18 def respond_to_missing?(*) true end