module EacRubyUtils::EnumerablesMethods

def self_methods_names(klass)

Returns:
  • (Enumerable) -

Parameters:
  • klass (Klass) --
def self_methods_names(klass)
  (klass.public_instance_methods - klass.superclass.public_instance_methods).sort
end

def write_method?(method_name)

Returns:
  • (Boolean) -

Parameters:
  • method_name (Symbol) --
def write_method?(method_name)
  WRITE_METHOD_PATTERNS.any? { |pattern| pattern.match?(method_name.to_s) }
end