Public instance methods
hashable!
()
[show source]
# File lib/win32_service_manager/core_ext/struct_to_hash.rb, line 29 def hashable! raise ArgumentError, "#{self.inspect} has duplicate keys" unless hashable? end
hashable?
()
[show source]
# File lib/win32_service_manager/core_ext/struct_to_hash.rb, line 25 def hashable? self.class.members.uniq == self.class.members end