Class: Deplate::IndexEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/deplate/etc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#containerObject

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

#labelObject

Returns the value of attribute label.



121
122
123
# File 'lib/deplate/etc.rb', line 121

def label
  @label
end

#level_as_stringObject



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

#nameObject

Returns the value of attribute name.



121
122
123
# File 'lib/deplate/etc.rb', line 121

def name
  @name
end

#synonymesObject

Returns the value of attribute synonymes.



121
122
123
# File 'lib/deplate/etc.rb', line 121

def synonymes
  @synonymes
end