Sha256: 0f4ead91ab756ab2ad02a6770065331b180cf84be9fe87e625f07359d85d767b
Contents?: true
Size: 270 Bytes
Versions: 15
Compression:
Stored size: 270 Bytes
Contents
module Maestrano # Extebd OpenStruct to include a 'attributes' # method class OpenStruct < ::OpenStruct # Return all object defined attributes def attributes (self.methods - self.class.new.methods).reject {|method| method =~ /=$/ } end end end
Version data entries
15 entries across 15 versions & 2 rubygems