Sha256: ef642016d9d38d778e28d3a6a7794e6b65f4a44d81f4559fe083007b8d25cb49

Contents?: true

Size: 427 Bytes

Versions: 2

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
    Jazzhands._hirb_output = true
    enable_output_method_existing
  end

  def disable_output_method
    Jazzhands._hirb_output = false
    disable_output_method_existing
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jazzhands-0.0.2 lib/jazzhands/hirb_ext.rb
jazzhands-0.0.1 lib/jazzhands/hirb_ext.rb