module Cabin::Mixins::CAPSLOCK
ALL CAPS MEANS SERIOUS BUSINESS
Public Class Methods
extended(instance)
click to toggle source
# File lib/cabin/mixins/CAPSLOCK.rb, line 5 def self.extended(instance) self.included(instance.class) end
included(klass)
click to toggle source
# File lib/cabin/mixins/CAPSLOCK.rb, line 8 def self.included(klass) klass.filter do |event| # CAPITALIZE ALL THE STRINGS event.each do |key, value| event[key] = value.upcase if value.respond_to?(:upcase) end end end