Sha256: 7f343b639b4a2de15ef70a72222f84e2bb9e5f0e329c6dc52a5a6844d5696fb7
Contents?: true
Size: 498 Bytes
Versions: 7
Compression:
Stored size: 498 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 Rib.warn("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