Sha256: f823d013858fbb6e8e9ae24b1dc83b11c93b6773c1b0a5f363f7453b59c758e8
Contents?: true
Size: 363 Bytes
Versions: 1
Compression:
Stored size: 363 Bytes
Contents
module Haml module Util class << self; include Haml::Util; end RUBY_VERSION = ::RUBY_VERSION.split(".").map {|s| s.to_i} def ruby1_8? Haml::Util::RUBY_VERSION[0] == 1 && Haml::Util::RUBY_VERSION[1] < 9 end def has?(attr, klass, method) klass.send("#{attr}s").include?(ruby1_8? ? method.to_s : method.to_sym) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
haml-2.0.7 | lib/haml/util.rb |