Sha256: 5114a068fb834646bc003f87f3bc14f5f64ee9f4ca23bab03990f64d63513e27

Contents?: true

Size: 427 Bytes

Versions: 6

Compression:

Stored size: 427 Bytes

Contents

require 'hirb'
require 'pry'

class << Hirb::View
  alias_method :enable_output_method_existing, :enable_output_method
  alias_method :disable_output_method_existing, :disable_output_method

  def enable_output_method
    @output_method = true
    FunkHands._hirb_output = true
    enable_output_method_existing
  end

  def disable_output_method
    FunkHands._hirb_output = false
    disable_output_method_existing
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
funk_hands-1.5.0 lib/funk_hands/hirb_ext.rb
funk_hands-1.4.0 lib/funk_hands/hirb_ext.rb
funk_hands-1.3.0 lib/funk_hands/hirb_ext.rb
funk_hands-1.2.0 lib/funk_hands/hirb_ext.rb
funk_hands-1.1.0 lib/funk_hands/hirb_ext.rb
funk_hands-1.0.0 lib/funk_hands/hirb_ext.rb