Sha256: 0d3f5ef6343e19efe5be59e276541eef3e0f56e706c422ed2c530bdc7324e0cd

Contents?: true

Size: 440 Bytes

Versions: 13

Compression:

Stored size: 440 Bytes

Contents

module Support
  module Helpers
    def tm_inspect(label = nil, &block)
      content = yield
      content = content.inspect unless content.is_a? String

      if $0 =~ /textmate-command/
        puts %Q|#{label ? "<p>inspecting: #{label}</p><hr />" : ""}<code>#{CGI.escapeHTML(content)}</code><hr />|
      else
        puts %Q|#{label ? "\ninspecting: #{label}\n" : "\n"}#{'-' * 80}\n#{content}\n#{"-" * 80}|
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
engine-assets-0.6.0.pre1 spec/support/helpers/textmate_helper.rb
engine-assets-0.5.1 spec/support/helpers/textmate_helper.rb
engine-assets-0.5.0 spec/support/helpers/textmate_helper.rb
engine-assets-0.4.2 spec/support/helpers/textmate_helper.rb
engine-assets-0.4.1 spec/support/helpers/textmate_helper.rb
engine-assets-0.4.0 spec/support/helpers/textmate_helper.rb
engine-assets-0.3.3 spec/support/helpers/textmate_helper.rb
engine-assets-0.3.2 spec/support/helpers/textmate_helper.rb
engine-assets-0.3.1 spec/support/helpers/textmate_helper.rb
engine-assets-0.3.0 spec/support/helpers/textmate_helper.rb
engine-assets-0.2.1 spec/support/helpers/textmate_helper.rb
engine-assets-0.2.0 spec/support/helpers/textmate_helper.rb
engine-assets-0.1.0 spec/support/helpers/textmate_helper.rb