Sha256: afe6dcae999a7bb7c5254e773995bdc6c71d6e00b4acb6e993ecb9882fdb0dcc

Contents?: true

Size: 495 Bytes

Versions: 1

Compression:

Stored size: 495 Bytes

Contents

require 'forwardable'
require 'singleton'
require 'thor'

module RooOnRails
  module Checks
    module Helpers
      class Receiver < Thor::Group
        include Singleton
        include Thor::Actions
      end

      def self.included(by)
        by.class_eval do
          extend Forwardable
          delegate %i[ask say set_color] => :'RooOnRails::Checks::Helpers::Receiver.instance'
        end
      end

      def bold(str)
        "\e[1;4m#{str}\e[22;24m"
      end
    end
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roo_on_rails-1.2.0 lib/roo_on_rails/checks/helpers.rb