Class: Trufina::Elements::Name
- Inherits:
-
Object
- Object
- Trufina::Elements::Name
- Includes:
- HappyMapper, AllowCreationFromHash, EasyElementAccess
- Defined in:
- lib/elements.rb
Overview
Encapsulates the various name components Trufina accepts
Instance Method Summary collapse
Methods included from EasyElementAccess
Methods included from AllowCreationFromHash
Instance Method Details
#to_s ⇒ Object
110 111 112 113 |
# File 'lib/elements.rb', line 110 def to_s name_parts = self.class.elements.map(&:method_name) name_parts.collect {|name_part| self.send(name_part) }.compact.join(' ') end |