Class: InfoBase
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.attributes ⇒ Object
3 4 5 6 7 8 9 10 11 |
# 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 ⇒ Object
13 14 15 |
# File 'lib/mrpin/core/base/info_base.rb', line 13 def self.ignored_methods [:===, :==, :!=] end |