Sha256: aef4caa49ad9c0a871a42183db606565fcafd0271f1b26647899eaeef828b14f
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
$:.unshift File.expand_path('../lib',__FILE__) require 'css_validator' require 'active_model' require 'benchmark' class WebPage include ActiveModel::Validations attr_accessor :css validates :css, presence: true, css: true end p = WebPage.new p.css = <<-eos #valid { margin: 10px; } eos n = 10 Benchmark.bm do |x| x.report do n.times do p.valid? # => true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
css_validator-3.0.0 | benchmark.rb |