lib/everyday-cli-utils/override.rb in everyday-cli-utils-1.8.7.1 vs lib/everyday-cli-utils/override.rb in everyday-cli-utils-1.8.7.2

- old
+ new

@@ -92,10 +92,14 @@ self end MethodOverrides.register_override(s, self, method_name, &block) end + def has_override?(method_name) + !self.true_overrides.empty?(method_name) + end + class << self def class_overrides(s) @overrides && @overrides.get(s) end @@ -107,8 +111,12 @@ @overrides = overrides end def override(method_name, &block) MethodOverrides.register_override(self, self, method_name, &block) + end + + def has_override?(method_name) + !self.true_overrides.empty?(method_name) end end end \ No newline at end of file