Class: Holistic::Ruby::Scope::Record
Instance Attribute Summary
#__database__, #attributes, #relations
Instance Method Summary
collapse
#attr, #has_many, #has_one, #initialize, #relation
Instance Method Details
#ancestors ⇒ Object
12
|
# File 'lib/holistic/ruby/scope/record.rb', line 12
def ancestors = has_many(:ancestors)
|
#class? ⇒ Boolean
17
|
# File 'lib/holistic/ruby/scope/record.rb', line 17
def class? = kind == Kind::CLASS
|
#class_method? ⇒ Boolean
18
|
# File 'lib/holistic/ruby/scope/record.rb', line 18
def class_method? = kind == Kind::CLASS_METHOD
|
#descendants ⇒ Object
13
|
# File 'lib/holistic/ruby/scope/record.rb', line 13
def descendants = has_many(:descendants)
|
#fully_qualified_name ⇒ Object
5
|
# File 'lib/holistic/ruby/scope/record.rb', line 5
def fully_qualified_name = attr(:fully_qualified_name)
|
#inspect ⇒ Object
22
23
24
|
# File 'lib/holistic/ruby/scope/record.rb', line 22
def inspect
"<#{self.class.name} kind=#{kind} fully_qualified_name=#{fully_qualified_name}>"
end
|
#instance_method? ⇒ Boolean
19
|
# File 'lib/holistic/ruby/scope/record.rb', line 19
def instance_method? = kind == Kind::INSTANCE_METHOD
|
#kind ⇒ Object
8
|
# File 'lib/holistic/ruby/scope/record.rb', line 8
def kind = attr(:kind)
|
#lexical_children ⇒ Object
11
|
# File 'lib/holistic/ruby/scope/record.rb', line 11
def lexical_children = has_many(:lexical_children)
|
#lexical_parent ⇒ Object
10
|
# File 'lib/holistic/ruby/scope/record.rb', line 10
def lexical_parent = has_one(:lexical_parent)
|
#locations ⇒ Object
6
|
# File 'lib/holistic/ruby/scope/record.rb', line 6
def locations = attr(:locations)
|
#method? ⇒ Boolean
20
|
# File 'lib/holistic/ruby/scope/record.rb', line 20
def method? = class_method? || instance_method?
|
#name ⇒ Object
7
|
# File 'lib/holistic/ruby/scope/record.rb', line 7
def name = attr(:name)
|
#referenced_by ⇒ Object
14
|
# File 'lib/holistic/ruby/scope/record.rb', line 14
def referenced_by = has_many(:referenced_by)
|
#root? ⇒ Boolean
16
|
# File 'lib/holistic/ruby/scope/record.rb', line 16
def root? = kind == Kind::ROOT
|