Project

General

Profile

Actions

Developer Request #10013

closed

Переопределение секций в шаблонах

Added by Alexander Protsenko over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Test Engine
Target version:
Start date:
12/25/2019
Due date:
% Done:

0%

Estimated time:
Published in build:
2.5.1-beta-200127

Description

Есть определение секции в базовом шаблоне:

  def pre
    ...
    section_data(:pa => 0x8002_2000, :va => 0x8002_2000) {}
    ...
  end

Чтобы переопределить секцию в шаблоне-потомке надо делать так:

  def pre
    section_data(:pa => 0x8002_8000, :va => 0x8002_8000) {}
    super()
  end

Вариант:
  def pre
    super()
    section_data(:pa => 0x8002_8000, :va => 0x8002_8000) {}
  end

не работает.

Этот нюанс надо либо зафиксировать в документации, либо исправить, если это ошибка.

Actions

Also available in: Atom PDF