Mixins::
MethodUtilities module
A collection of methods for declaring other methods.
class MyClass extend Mixins::MethodUtilities singleton_attr_accessor :types singleton_method_alias :kinds, :types end MyClass.types = [ :pheno, :proto, :stereo ] MyClass.kinds # => [:pheno, :proto, :stereo]
Public Instance Methods
Create a reader in the form of a predicate for the given attrname
.
Create a reader in the form of a predicate for the given attrname
as well as a regular writer method.
Creates readers and writers that allow assignment to the attributes of the singleton of the declaring object that correspond to the specified symbols
.
Creates instance variables and corresponding methods that return their values for each of the specified symbols
in the singleton of the declaring object (e.g., class instance variables and methods if declared in a Class).
Creates methods that allow assignment to the attributes of the singleton of the declaring object that correspond to the specified symbols
.
Creates an alias for the original
method named newname
.
Create predicate methods and writers that allow assignment to the attributes of the singleton of the declaring object that correspond to the specified symbols
.
Create instance variables and corresponding methods that return true or false values for each of the specified symbols
in the singleton of the declaring object.