Sha256: a4d4d89e354e270c97e887bf9a515c5839fec234fdad5fdbe15ec59758da987f
Contents?: true
Size: 448 Bytes
Versions: 21
Compression:
Stored size: 448 Bytes
Contents
class Module # There's a school of thought that says an attribute # show always have a reader and a writer. # #-- # NOAUTO #++ def attr(*args) args.pop unless args.last.is_a?(Symbol) or args.last.is_a?(String) attr_accessor *args args.collect{ |a| [ "#{a}".to_sym, "#{a}=".to_sym ] }.flatten end end # _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # TODO
Version data entries
21 entries across 21 versions & 1 rubygems