Module: Haml::Util

Module | Haml::Util
In: | lib/haml/util.rb

### Methods

has? ruby1_8?

### Included Modules

Haml::Util

### Constants

RUBY_VERSION | = | ::RUBY_VERSION.split(".").map {|s| s.to_i}

### Public Instance methods

has?(attr, klass, method)

[Source]

        # File lib/haml/util.rb, line 11
    11:     def has?(attr, klass, method)
    12:       klass.send("#{attr}s").include?(ruby1_8? ? method.to_s : method.to_sym)
    13:     end

ruby1_8?()

[Source]

       # File lib/haml/util.rb, line 7
    7:     def ruby1_8?
    8:       Haml::Util::RUBY_VERSION[0] == 1 && Haml::Util::RUBY_VERSION[1] < 9
    9:     end

[Validate]