class Module
require ‘facets/inheritor’ # removed dependency
Public Instance Methods
attribute_methods()
click to toggle source
Module
extension to return attribute methods. These are all methods that start with ‘attr_`. This method can be overriden in special cases to work with attribute annotations.
# File lib/anise/core_ext.rb, line 9 def attribute_methods list = [] public_methods(true).each do |m| list << m if m.to_s =~ /^attr_/ end protected_methods(true).each do |m| list << m if m.to_s =~ /^attr_/ end private_methods(true).each do |m| list << m if m.to_s =~ /^attr_/ end return list end