class Gemsmith::Generators::Pragma
Formats pragma comments in source files.
Constants
- DEFAULT_COMMENTS
Public Instance Methods
includes()
click to toggle source
rubocop:disable Metrics/MethodLength
# File lib/gemsmith/generators/pragma.rb, line 17 def includes %W[ **/*Gemfile **/*Guardfile **/*Rakefile **/*config.ru **/*bin/#{configuration.dig :gem, :name} **/*bin/bundle **/*bin/rails **/*bin/rake **/*bin/setup **/*bin/update **/*bin/yarn **/*.gemspec **/*.rake **/*.rb ] end
run()
click to toggle source
# File lib/gemsmith/generators/pragma.rb, line 12 def run Pragmater::Runner.for(**attributes).call end
Private Instance Methods
attributes()
click to toggle source
rubocop:enable Metrics/MethodLength
# File lib/gemsmith/generators/pragma.rb, line 39 def attributes { action: :insert, root_dir: gem_root, comments: DEFAULT_COMMENTS, includes: includes } end