Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/rscm/annotations.rb
Instance Method Summary collapse
Instance Method Details
#__attr_accessors ⇒ Object
60 61 62 63 64 65 66 67 68 |
# File 'lib/rscm/annotations.rb', line 60 def __attr_accessors attrs = [] methods.each do |method| if(method =~ /(.*)=/) attrs << "@#{$1}" if methods.index($1) && $1 != "==" end end attrs.sort end |
#anns(attr_name) ⇒ Object
56 57 58 |
# File 'lib/rscm/annotations.rb', line 56 def anns(attr_name) self.class.send(attr_name) end |