Class | Array |
In: |
lib/will_paginate/core_ext.rb
|
Parent: | Object |
helper to check for method existance in ruby 1.8- and 1.9-compatible way because `methods`, `instance_methods` and others return strings in 1.8 and symbols in 1.9
['foo', 'bar'].include_method?(:foo) # => true