Class: Deplate::IndexEntry
- Inherits:
-
Object
- Object
- Deplate::IndexEntry
- Defined in:
- lib/deplate/etc.rb
Instance Attribute Summary collapse
-
#container ⇒ Object
Returns the value of attribute container.
- #file(invoker = nil) ⇒ Object
-
#label ⇒ Object
Returns the value of attribute label.
- #level_as_string ⇒ Object
-
#name ⇒ Object
Returns the value of attribute name.
-
#synonymes ⇒ Object
Returns the value of attribute synonymes.
Instance Method Summary collapse
-
#initialize(container) ⇒ IndexEntry
constructor
A new instance of IndexEntry.
Constructor Details
#initialize(container) ⇒ IndexEntry
124 125 126 127 128 129 130 |
# File 'lib/deplate/etc.rb', line 124 def initialize(container) @container = container # p "DBG IndexEntry: container = nil" unless container if block_given? yield(self) end end |
Instance Attribute Details
#container ⇒ Object
Returns the value of attribute container.
121 122 123 |
# File 'lib/deplate/etc.rb', line 121 def container @container end |
#file(invoker = nil) ⇒ Object
132 133 134 135 |
# File 'lib/deplate/etc.rb', line 132 def file(invoker=nil) # @file || (@container && @container.output_file_name(:relative => invoker)) @file end |
#label ⇒ Object
Returns the value of attribute label.
121 122 123 |
# File 'lib/deplate/etc.rb', line 121 def label @label end |
#level_as_string ⇒ Object
137 138 139 140 |
# File 'lib/deplate/etc.rb', line 137 def level_as_string # @level_as_string || (@container && @container.level_as_string) @level_as_string end |
#name ⇒ Object
Returns the value of attribute name.
121 122 123 |
# File 'lib/deplate/etc.rb', line 121 def name @name end |
#synonymes ⇒ Object
Returns the value of attribute synonymes.
121 122 123 |
# File 'lib/deplate/etc.rb', line 121 def synonymes @synonymes end |