Class: Ahnnotate::Facet::Models::Standin
- Inherits:
-
Object
- Object
- Ahnnotate::Facet::Models::Standin
- Includes:
- ActiveRecord::ModelSchema::ClassMethods
- Defined in:
- lib/ahnnotate/facet/models/standin.rb
Instance Attribute Summary collapse
-
#abstract_class ⇒ Object
writeonly
boolean, is this an abstract class.
-
#base_class ⇒ Object
Returns the value of attribute base_class.
-
#parent ⇒ Object
the outer class.
-
#superclass ⇒ Object
the class that the current class inherits from.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #abstract_class? ⇒ Boolean
-
#initialize(abstract_class:, superclass:, base_class:, parent:, is_active_record_base: false) ⇒ Standin
constructor
A new instance of Standin.
Constructor Details
#initialize(abstract_class:, superclass:, base_class:, parent:, is_active_record_base: false) ⇒ Standin
Returns a new instance of Standin.
19 20 21 22 23 24 25 |
# File 'lib/ahnnotate/facet/models/standin.rb', line 19 def initialize(abstract_class:, superclass:, base_class:, parent:, is_active_record_base: false) @abstract_class = abstract_class @superclass = superclass @base_class = base_class @parent = parent @is_active_record_base = is_active_record_base end |
Instance Attribute Details
#abstract_class=(value) ⇒ Object (writeonly)
boolean, is this an abstract class
12 13 14 |
# File 'lib/ahnnotate/facet/models/standin.rb', line 12 def abstract_class=(value) @abstract_class = value end |
#base_class ⇒ Object
Returns the value of attribute base_class.
15 16 17 |
# File 'lib/ahnnotate/facet/models/standin.rb', line 15 def base_class @base_class end |
#parent ⇒ Object
the outer class
17 18 19 |
# File 'lib/ahnnotate/facet/models/standin.rb', line 17 def parent @parent end |
#superclass ⇒ Object
the class that the current class inherits from
14 15 16 |
# File 'lib/ahnnotate/facet/models/standin.rb', line 14 def superclass @superclass end |
Instance Method Details
#==(other) ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/ahnnotate/facet/models/standin.rb', line 31 def ==(other) if @is_active_record_base && other == ActiveRecord::Base return true end super end |
#abstract_class? ⇒ Boolean
27 28 29 |
# File 'lib/ahnnotate/facet/models/standin.rb', line 27 def abstract_class? !!@abstract_class end |