Module: Lycra::Inheritance
- Defined in:
- lib/lycra/inheritance.rb
Instance Attribute Summary collapse
-
#abstract_class ⇒ Object
Returns the value of attribute abstract_class.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#abstract_class ⇒ Object
Returns the value of attribute abstract_class.
3 4 5 |
# File 'lib/lycra/inheritance.rb', line 3 def abstract_class @abstract_class end |
Class Method Details
.extended(base) ⇒ Object
5 6 7 |
# File 'lib/lycra/inheritance.rb', line 5 def self.extended(base) base.send :delegate, :abstract?, to: :class end |
Instance Method Details
#abstract! ⇒ Object
9 10 11 |
# File 'lib/lycra/inheritance.rb', line 9 def abstract! @abstract_class = true end |
#abstract? ⇒ Boolean
13 14 15 |
# File 'lib/lycra/inheritance.rb', line 13 def abstract? !!abstract_class end |