Class: Postsvg::Visitors::PsVisitor::Font::FontRef
- Inherits:
-
Struct
- Object
- Struct
- Postsvg::Visitors::PsVisitor::Font::FontRef
- Defined in:
- lib/postsvg/visitors/ps_visitor/font.rb
Overview
Tracks the current font for later show. The visitor
pushes FontRef value objects onto the stack.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(name:, size:) ⇒ FontRef
constructor
A new instance of FontRef.
Constructor Details
#initialize(name:, size:) ⇒ FontRef
Returns a new instance of FontRef.
17 18 19 20 |
# File 'lib/postsvg/visitors/ps_visitor/font.rb', line 17 def initialize(name:, size:) super freeze end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
16 17 18 |
# File 'lib/postsvg/visitors/ps_visitor/font.rb', line 16 def name @name end |
#size ⇒ Object
Returns the value of attribute size
16 17 18 |
# File 'lib/postsvg/visitors/ps_visitor/font.rb', line 16 def size @size end |