ancestors

mod.ancestors รข array
Instance Public methods

Returns a list of modules included in mod (including mod itself).

module Mod
  include Math
  include Comparable
end

Mod.ancestors    #=> [Mod, Comparable, Math]
Math.ancestors   #=> [Math]
doc_ruby_on_rails
2015-04-19 02:23:33
Comments
Leave a Comment

Please login to continue.