Class: UCD::Node::Base

Inherits:
Object
  • Object
show all
Includes:
HasAttributes
Defined in:
lib/ucd/node/base.rb

Direct Known Subclasses

ClassNode, Document, Field, MethodArgument, Relationship

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasAttributes

#update_attributes

Constructor Details

#initialize(attributes = {}) ⇒ Base

Returns a new instance of Base.



9
10
11
# File 'lib/ucd/node/base.rb', line 9

def initialize(attributes={})
  update_attributes(attributes)
end

Instance Attribute Details

#parentObject

Returns the value of attribute parent.



13
14
15
# File 'lib/ucd/node/base.rb', line 13

def parent
  @parent
end