Module: Diakonos::ConfigFileDescription
- Included in:
- ConfigFile, ConfigFileNull, ConfigFileUnreadable
- Defined in:
- lib/diakonos/config-file.rb
Overview
Should inheritance be used in this file instead?
Instance Method Summary collapse
Instance Method Details
#inclusion_description ⇒ Object
13 14 15 |
# File 'lib/diakonos/config-file.rb', line 13 def inclusion_description "included by #{@including_config_file.name_as_includer}" end |
#name_as_includer ⇒ Object
9 10 11 |
# File 'lib/diakonos/config-file.rb', line 9 def name_as_includer @filename end |
#to_s ⇒ Object
5 6 7 |
# File 'lib/diakonos/config-file.rb', line 5 def to_s "#{@filename}\t(#{self.inclusion_description})" end |