Class: Rucoa::Definitions::ClassDefinition
Instance Attribute Summary collapse
#extended_module_qualified_names, #extended_module_unqualified_names, #included_module_qualified_names, #included_module_unqualified_names, #prepended_module_qualified_names, #prepended_module_unqualified_names
#qualified_name
Attributes inherited from Base
#description, #location
Instance Method Summary
collapse
#name, #namespace
Constructor Details
#initialize(super_class_qualified_name: nil, super_class_unqualified_name: nil, **keyword_arguments) ⇒ ClassDefinition
Returns a new instance of ClassDefinition.
14
15
16
17
18
19
20
21
22
|
# File 'lib/rucoa/definitions/class_definition.rb', line 14
def initialize(
super_class_qualified_name: nil,
super_class_unqualified_name: nil,
**keyword_arguments
)
super(**keyword_arguments)
@super_class_qualified_name = super_class_qualified_name
@super_class_unqualified_name = super_class_unqualified_name
end
|
Instance Attribute Details
#super_class_qualified_name ⇒ String?
7
8
9
|
# File 'lib/rucoa/definitions/class_definition.rb', line 7
def super_class_qualified_name
@super_class_qualified_name
end
|
10
11
12
|
# File 'lib/rucoa/definitions/class_definition.rb', line 10
def super_class_unqualified_name
@super_class_unqualified_name
end
|
Instance Method Details
#merge!(other) ⇒ Object
25
26
27
28
29
|
# File 'lib/rucoa/definitions/class_definition.rb', line 25
def merge!(other)
self.super_class_qualified_name ||= other.super_class_qualified_name
self.super_class_unqualified_name ||= other.super_class_unqualified_name
super
end
|