Skip to content

Instantly share code, notes, and snippets.

View silvamerica's full-sized avatar

Nicholas Silva silvamerica

View GitHub Profile
@silvamerica
silvamerica / singleton_class_include.rb
Created February 1, 2019 02:59
Singleton Class Include Cop
module RuboCop
module Cop
module Security
# This cop checks for includes/extends/prepends inside of
# class << self blocks
#
# @example
#
# # bad
#
/* light blue #37BEFF */
.loader-box {
border: 4px solid #37BEFF;
width: 44px;
height: 60px;
border-radius: 8px;
color: #FFF;
}
.loader-line {