Sha256: b0841b8dcd06ddd6ad028bf911cbb2cb8062147ac5376b63f33c3992b7b0b222

Contents?: true

Size: 421 Bytes

Versions: 7

Compression:

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

  def disable_output_method
    Debbie._hirb_output = false
    disable_output_method_existing
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
debbie-2.0.0 lib/debbie/hirb_ext.rb
debbie-1.0.2 lib/debbie/hirb_ext.rb
debbie-1.0.1 lib/debbie/hirb_ext.rb
debbie-1.0.0 lib/debbie/hirb_ext.rb
debbie-0.6.2 lib/debbie/hirb_ext.rb
debbie-0.6.1 lib/debbie/hirb_ext.rb
debbie-0.6.0 lib/debbie/hirb_ext.rb