Sha256: ba441cee335d4f946bc06f6fe72b6a4b585e3474840a0e6924c6ccc155142e31
Contents?: true
Size: 410 Bytes
Versions: 22
Compression:
Stored size: 410 Bytes
Contents
require "cabin/namespace" # ALL CAPS MEANS SERIOUS BUSINESS module Cabin::Mixins::CAPSLOCK def self.extended(instance) self.included(instance.class) end 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 end # MODULE CABIN::MIXINS::CAPSLOCK
Version data entries
22 entries across 20 versions & 6 rubygems
Version | Path |
---|---|
cabin-0.4.4 | lib/cabin/mixins/CAPSLOCK.rb |
cabin-0.4.3 | lib/cabin/mixins/CAPSLOCK.rb |