Class: ODDB::OrphanedTextInfo

Inherits:
Object
  • Object
show all
Includes:
Language
Defined in:
src/model/orphan.rb

Direct Known Subclasses

OrphanedFachinfo, OrphanedPatinfo

Constant Summary

Constants included from Persistence

ODBA_PREDEFINE_SERIALIZABLE

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from Language

#all_descriptions, #has_description?, #init, #synonyms, #synonyms=

Methods included from SimpleLanguage

#description, #descriptions, #has_description?, #match, #method_missing, #respond_to?, #search_text, #to_s, #update_values

Methods included from Persistence

#initialize

Methods included from PersistenceMethods

#checkout, #data_origin, #data_origins, #diff, #init, #nil_if_empty, #parent, #pointer_descr, #structural_ancestors, #undiffable?, #update_values

Constructor Details

This class inherits a constructor from ODDB::Persistence

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ODDB::SimpleLanguage

Instance Attribute Details

- (Object) key Also known as: pointer_desc

Returns the value of attribute key



10
11
12
# File 'src/model/orphan.rb', line 10

def key
  @key
end

Instance Method Details

- (Object) name



12
13
14
15
16
# File 'src/model/orphan.rb', line 12

def name
  if desc = descriptions.sort.first
    desc.last.name rescue $!.message
  end
end