Sha256: cfef2c03b21bc2159c4db04637692ed8a89c2ef30b536395debd08c2c346818b

Contents?: true

Size: 340 Bytes

Versions: 108

Compression:

Stored size: 340 Bytes

Contents

module Temple
  module HTML
    class SafeString < String
      def html_safe?; true end
      def html_safe;  self end
      def to_s;       self end
    end
  end
end

class Object
  def html_safe?; false end
end

class Numeric
  def html_safe?; true end
end

class String
  def html_safe
    Temple::HTML::SafeString.new(self)
  end
end

Version data entries

108 entries across 94 versions & 7 rubygems

Version Path
brakeman-5.2.0 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/safe.rb
brakeman-5.1.2 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/safe.rb
brakeman-5.1.1 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/safe.rb
brakeman-5.1.0 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/safe.rb
brakeman-5.0.4 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/safe.rb
brakeman-5.0.2 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/safe.rb
brakeman-5.0.1 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/safe.rb
brakeman-5.0.0 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/safe.rb
brakeman-4.10.1 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/safe.rb
brakeman-5.0.0.pre1 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/safe.rb
brakeman-4.10.0 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/safe.rb
brakeman-4.9.1 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/safe.rb
brakeman-4.9.0 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/safe.rb
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/temple-0.8.0/lib/temple/html/safe.rb
brakeman-4.8.2 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/safe.rb
brakeman-4.8.1 bundle/ruby/2.4.0/gems/temple-0.8.2/lib/temple/html/safe.rb
brakeman-4.8.0 bundle/ruby/2.7.0/gems/temple-0.8.2/lib/temple/html/safe.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/brakeman-4.5.1/bundle/ruby/2.5.0/gems/temple-0.8.1/lib/temple/html/safe.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/brakeman-4.7.0/bundle/ruby/2.6.0/gems/temple-0.8.2/lib/temple/html/safe.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/brakeman-4.7.1/bundle/ruby/2.6.0/gems/temple-0.8.2/lib/temple/html/safe.rb