Class: Layout::TitleBlock
- Inherits:
-
Object
- Object
- Layout::TitleBlock
Overview
Title block shared fields, similar to a Hash. Fields: project (project name), company (design unit), designer (design), checker (review), approver (approval), date (date). Each item should not exceed 200 characters.
Instance Method Summary # collapse
-
#[] ⇒ String
Read a field, which is an empty string if not filled.
-
#[]= ⇒ String, nil
Write a field with one step undo; an empty string or nil clears the field.
-
#keys ⇒ Array<String>
All field names.
-
#to_h ⇒ Hash{String => String}
A copy of all fields.
Instance Method Details
title_block[field] ⇒ String
Read a field, which is an empty string if not filled.
title_block[field] = text
Write a field with one step undo; an empty string or nil clears the field.
title_block.keys ⇒ Array<String>
All field names.
title_block.to_h ⇒ Hash
A copy of all fields.