Sha256: a7378c454ba270c1001eff3eaeeff56b24496c4cba6579e5cc32bc69530eeca2
Contents?: true
Size: 584 Bytes
Versions: 5
Compression:
Stored size: 584 Bytes
Contents
require 'rib' module Rib; module Hirb extend 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; end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rib-1.6.1 | lib/rib/extra/hirb.rb |
rib-1.6.0 | lib/rib/extra/hirb.rb |
rib-1.5.4 | lib/rib/extra/hirb.rb |
rib-1.5.3 | lib/rib/extra/hirb.rb |
rib-1.5.2 | lib/rib/extra/hirb.rb |