Class: Card::Content::Chunk::Reference
- Defined in:
- mod/content/lib/card/content/chunk/reference.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#referee_name ⇒ Object
Attributes inherited from Abstract
Instance Method Summary collapse
Methods inherited from Abstract
#as_json, #burn_after_reading, #burn_read, #card, context_ok?, #format, full_match, full_re, #initialize, #inspect, #interpret, #reference_code, #result, #to_s
Constructor Details
This class inherits a constructor from Card::Content::Chunk::Abstract
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'mod/content/lib/card/content/chunk/reference.rb', line 8 def name @name end |
#referee_name ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'mod/content/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 # do not break on missing id/codename references. end |