Class: Card::Content::Chunk::Reference
- Inherits:
-
Abstract
- Object
- Abstract
- Card::Content::Chunk::Reference
show all
- Defined in:
- lib/card/content/chunk/reference.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
8
9
10
|
# File 'lib/card/content/chunk/reference.rb', line 8
def name
@name
end
|
#referee_name ⇒ Object
10
11
12
13
14
15
16
17
|
# File 'lib/card/content/chunk/reference.rb', line 10
def referee_name
return if name.nil?
@referee_name ||= referee_raw_name
@referee_name = @referee_name.absolute_name card.name
rescue Card::Error::NotFound
end
|
Instance Method Details
#referee_card ⇒ Object
23
24
25
|
# File 'lib/card/content/chunk/reference.rb', line 23
def referee_card
@referee_card ||= referee_name && Card.fetch(referee_name)
end
|
#referee_raw_name ⇒ Object
19
20
21
|
# File 'lib/card/content/chunk/reference.rb', line 19
def referee_raw_name
Name[render_obj(name)]
end
|