class Maestrano::OpenStruct

Extebd OpenStruct to include a ‘attributes’ method

Public Instance Methods

attributes() click to toggle source

Return all object defined attributes

# File lib/maestrano/open_struct.rb, line 7
def attributes
  (self.methods - self.class.new.methods).reject {|method| method =~ /=$/ }
end