Class: DocxTemplate::Docx::EntityReplacer
- Inherits:
-
Object
- Object
- DocxTemplate::Docx::EntityReplacer
- Defined in:
- lib/docx_template/docx.rb
Instance Attribute Summary collapse
-
#dest_entity ⇒ Object
readonly
Returns the value of attribute dest_entity.
-
#occurances ⇒ Object
readonly
Returns the value of attribute occurances.
-
#src_entity ⇒ Object
readonly
Returns the value of attribute src_entity.
- #type ⇒ Object
Instance Method Summary collapse
-
#initialize(src, dest, occurances) ⇒ EntityReplacer
constructor
A new instance of EntityReplacer.
Constructor Details
#initialize(src, dest, occurances) ⇒ EntityReplacer
Returns a new instance of EntityReplacer.
97 98 99 100 101 |
# File 'lib/docx_template/docx.rb', line 97 def initialize(src, dest, occurances) @src_entity = src @dest_entity = ( dest ? dest : "" ) @occurances = occurances end |
Instance Attribute Details
#dest_entity ⇒ Object (readonly)
Returns the value of attribute dest_entity.
95 96 97 |
# File 'lib/docx_template/docx.rb', line 95 def dest_entity @dest_entity end |
#occurances ⇒ Object (readonly)
Returns the value of attribute occurances.
95 96 97 |
# File 'lib/docx_template/docx.rb', line 95 def occurances @occurances end |
#src_entity ⇒ Object (readonly)
Returns the value of attribute src_entity.
95 96 97 |
# File 'lib/docx_template/docx.rb', line 95 def src_entity @src_entity end |
#type ⇒ Object
103 104 105 |
# File 'lib/docx_template/docx.rb', line 103 def type @type || "FILE" end |