Class: UCD::Node::ClassNode
Instance Attribute Summary collapse
Attributes included from HasName
#name
Attributes inherited from Base
#parent
Instance Method Summary
collapse
Methods inherited from Base
#initialize
#update_attributes
Instance Attribute Details
#members ⇒ Object
Returns the value of attribute members.
20
21
22
|
# File 'lib/ucd/node/class_node.rb', line 20
def members
@members
end
|
#modifier ⇒ Object
Returns the value of attribute modifier.
14
15
16
|
# File 'lib/ucd/node/class_node.rb', line 14
def modifier
@modifier
end
|
Instance Method Details
#class_relationships ⇒ Object
50
51
52
|
# File 'lib/ucd/node/class_node.rb', line 50
def class_relationships
@members.find_all { |member| member.class == ClassRelationship }
end
|
#fields ⇒ Object
38
39
40
|
# File 'lib/ucd/node/class_node.rb', line 38
def fields
@members.find_all { |member| member.class == Field }
end
|
#methods ⇒ Object
42
43
44
|
# File 'lib/ucd/node/class_node.rb', line 42
def methods
@members.find_all { |member| member.class == Method }
end
|
#relationships ⇒ Object
46
47
48
|
# File 'lib/ucd/node/class_node.rb', line 46
def relationships
@members.find_all { |member| member.class == Relationship }
end
|