Module: AbstractType::AbstractMethodDeclarations
- Defined in:
- lib/abstract_type.rb
Instance Method Summary collapse
-
#abstract_method(*names) ⇒ self
Create abstract instance methods.
-
#abstract_singleton_method(*names) ⇒ self
private
Create abstract singleton methods.
Instance Method Details
#abstract_method(*names) ⇒ self
Create abstract instance methods
61 62 63 64 |
# File 'lib/abstract_type.rb', line 61 def abstract_method(*names) names.each(&method(:create_abstract_instance_method)) self end |
#abstract_singleton_method(*names) ⇒ self
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create abstract singleton methods
81 82 83 84 |
# File 'lib/abstract_type.rb', line 81 def abstract_singleton_method(*names) names.each(&method(:create_abstract_singleton_method)) self end |