class Controll::Events
Attributes
events[R]
Public Class Methods
new(*events)
click to toggle source
# File lib/controll/events.rb, line 8 def initialize *events @events = events.flatten.map{|event| normalize event } end
valid_types()
click to toggle source
# File lib/controll/events.rb, line 24 def self.valid_types Controll::Event.valid_types end
Public Instance Methods
<<(event)
click to toggle source
# File lib/controll/events.rb, line 16 def << event events << event end
each() { |event| ... }
click to toggle source
# File lib/controll/events.rb, line 12 def each events.each {|event| yield event } end
last()
click to toggle source
# File lib/controll/events.rb, line 20 def last events.last end
valid_types()
click to toggle source
# File lib/controll/events.rb, line 44 def valid_types Controll::Event.valid_types end