module RooOnRails::Checks::Helpers

Public Class Methods

included(by) click to toggle source
# File lib/roo_on_rails/checks/helpers.rb, line 13
def self.included(by)
  by.class_eval do
    extend Forwardable
    delegate %i(say ask yes? no? create_file
                add_file remove_file copy_file
                template directory inside inject_into_file
                append_to_file) => :'RooOnRails::Checks::Helpers::Receiver.instance'
  end
end

Public Instance Methods

bold(str) click to toggle source
# File lib/roo_on_rails/checks/helpers.rb, line 23
def bold(str)
  "\e[1;4m#{str}\e[22;24m"
end