Sha256: 53ecb4573e6e84b63e982fbaffac6d374b854395d68ecd112a4699d6df622d54
Contents?: true
Size: 189 Bytes
Versions: 1
Compression:
Stored size: 189 Bytes
Contents
module AttrReader private def attr_reader(*args) args.each do |name| define_method name do return instance_variable_get "@#{name}" end end nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ghostest-0.1.0 | lib/ghostest/attr_reader.rb |