Class: Deplate::NullTop
- Inherits:
-
PseudoContainer
- Object
- CommonObject
- Base
- BaseElement
- PseudoContainer
- Deplate::NullTop
- Defined in:
- lib/deplate/etc.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#caption ⇒ Object
readonly
Returns the value of attribute caption.
-
#description ⇒ Object
Returns the value of attribute description.
-
#first_top ⇒ Object
Returns the value of attribute first_top.
-
#last_top ⇒ Object
Returns the value of attribute last_top.
-
#level_heading ⇒ Object
readonly
Returns the value of attribute level_heading.
Attributes inherited from PseudoContainer
#destination, #registered_metadata
Attributes included from CommonElement
#accum, #indent, #regNote, #top_heading
Attributes included from CommonGround
#container, #deplate, #doc_slot, #doc_type, #elt, #epilogue, #indentation, #indentation_level, #keep_whitespace, #level, #level_as_list, #level_as_string, #match, #prologue, #prototype, #source, #styles, #text
Instance Method Summary collapse
-
#initialize(deplate, args) ⇒ NullTop
constructor
A new instance of NullTop.
Methods inherited from PseudoContainer
Methods included from CommonElement
#add_metadata, #format_as_string, #is_explicit?, #update_id
Methods inherited from Base
def_get, #exclude?, #label_mode, #pop, set_formatter, set_rx
Methods included from CommonGround
#can_be_labelled, #element_or_particle, #filter_template, #format_element, get_explicit_id, #get_id, #heading_level, #labels_sans_id, #log, #match_expected, #output, #output_at, #output_file_name, #output_preferably_at, #plain_caption?, post_process_text, #styles_as_string, #tagged_as?, #top_container, #update_args, #update_id, #update_styles, #warn_unpexpected
Methods inherited from CommonObject
class_attribute, class_attributes, class_attributes=, class_attributes_ensure, class_meta_attributes, inherited, method_missing, respond_to?
Constructor Details
#initialize(deplate, args) ⇒ NullTop
64 65 66 67 68 69 70 71 72 73 |
# File 'lib/deplate/etc.rb', line 64 def initialize(deplate, args) super @level_heading = [0] @destination = args[:destination] @args = {:id => 'deplateNullTop'} @caption = Deplate::CaptionDef.new(deplate.msg('[Start]'), {}, nil) @description = nil @first_top = false @last_top = false end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
61 62 63 |
# File 'lib/deplate/etc.rb', line 61 def args @args end |
#caption ⇒ Object (readonly)
Returns the value of attribute caption.
61 62 63 |
# File 'lib/deplate/etc.rb', line 61 def caption @caption end |
#description ⇒ Object
Returns the value of attribute description.
62 63 64 |
# File 'lib/deplate/etc.rb', line 62 def description @description end |
#first_top ⇒ Object
Returns the value of attribute first_top.
62 63 64 |
# File 'lib/deplate/etc.rb', line 62 def first_top @first_top end |
#last_top ⇒ Object
Returns the value of attribute last_top.
62 63 64 |
# File 'lib/deplate/etc.rb', line 62 def last_top @last_top end |
#level_heading ⇒ Object (readonly)
Returns the value of attribute level_heading.
61 62 63 |
# File 'lib/deplate/etc.rb', line 61 def level_heading @level_heading end |