Sha256: 7270ff13b2208439ebdc5c4476fd969fd0f27cd9d848216a06a0f858f8af9d8c

Contents?: true

Size: 431 Bytes

Versions: 4

Compression:

Stored size: 431 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
    JazzFingers._hirb_output = true
    enable_output_method_existing
  end

  def disable_output_method
    JazzFingers._hirb_output = false
    disable_output_method_existing
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jazz_fingers-1.0.0 lib/jazz_fingers/hirb_ext.rb
jazz_fingers-0.5.5 lib/jazz_fingers/hirb_ext.rb
jazz_fingers-0.5.4 lib/jazz_fingers/hirb_ext.rb
jazz_fingers-0.5.3 lib/jazz_fingers/hirb_ext.rb