class InfoBase
Public Class Methods
attributes()
click to toggle source
# File lib/mrpin/core/base/info_base.rb, line 3 def self.attributes if @attributes.nil? @attributes = self.instance_methods.select { |method| method =~ /=$/ } @attributes -= self.ignored_methods @attributes.map! { |attribute| attribute.to_s.chop.to_sym } # delete last symbol '=' end @attributes end
ignored_methods()
click to toggle source
# File lib/mrpin/core/base/info_base.rb, line 13 def self.ignored_methods [:===, :==, :!=] end