Sha256: fac1fe791dc68174f59ccdb7dd204f7eb4bc33961ca84d6e7a1a6c8150010972
Contents?: true
Size: 289 Bytes
Versions: 2
Compression:
Stored size: 289 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop module Style # This cop checks for BEGIN blocks. class BeginBlock < Cop MSG = 'Avoid the use of BEGIN blocks.' def on_preexe(node) add_offense(node, :keyword) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.19.1 | lib/rubocop/cop/style/begin_block.rb |
rubocop-0.19.0 | lib/rubocop/cop/style/begin_block.rb |