Sha256: b8781818843e52e874b354572afac446b172df1a090a3e72b8de5f1420f371ef
Contents?: true
Size: 578 Bytes
Versions: 7
Compression:
Stored size: 578 Bytes
Contents
require 'rib' module Rib::Hirb include Rib::Plugin Shell.use(self) # --------------- Rib API --------------- def format_result result return super if Hirb.disabled? ::Hirb::View.view_or_page_output(result) || super end end begin Rib.silence{ require 'hirb' ::Hirb.enable } rescue LoadError => e Rib.warn("Error: #{e}" , "Please install hirb to use hirb plugin:\n", " gem install hirb\n" , "Or add hirb to Gemfile if that's the case") Rib::Hirb.disable end
Version data entries
7 entries across 7 versions & 1 rubygems