- Parent Namespace
- SleepingKingStudios::Tools::Toolbox
- Defined In
- lib/sleeping_king_studios/tools/toolbox/heritable_data.rb
Table Of Contents
Overview
Mixin to allow defining subclasses of Data classes.
Back To Top
Defined Under Namespace
- Modules
- ClassMethods
Back To Top
Class Methods
.define(*symbols, parent_class: nil, &) => Object
Defines a new heritable Data class.
Parameters
- symbols (Array<Symbol>) — Data members to define.
- parent_class (Class) — the parent class to inherit members and
methods from.
Yields
- additional methods to define on the new Data class.
Back To Top
Instance Methods
#is_a?(type) => true
Also known as:
kind_of?
Checks if the object class inherits from type.
Parameters
- type (Module) — the type to check.
Returns
- (true) — if the object class inherits from type, or if the object
class inherits members and methods from the given type.
Back To Top
Back to
Documentation |
Reference
|
SleepingKingStudios
|
SleepingKingStudios::Tools
|
SleepingKingStudios::Tools::Toolbox