Class: Ilovepdf::Signature::TextElement
- Inherits:
-
Object
- Object
- Ilovepdf::Signature::TextElement
- Includes:
- FileElement
- Defined in:
- lib/ilovepdf/signature/text_element.rb
Instance Method Summary collapse
- #content=(value) ⇒ Object
-
#initialize(file, text) ⇒ TextElement
constructor
A new instance of TextElement.
Methods included from FileElement
Constructor Details
#initialize(file, text) ⇒ TextElement
Returns a new instance of TextElement.
5 6 7 8 9 |
# File 'lib/ilovepdf/signature/text_element.rb', line 5 def initialize(file,text) super(file) @type = :text @content = text end |
Instance Method Details
#content=(value) ⇒ Object
11 12 13 14 |
# File 'lib/ilovepdf/signature/text_element.rb', line 11 def content=(value) raise ::Ilovepdf::Errors::ArgumentError.new("value must be a String type of object") unless s.is_a?(String) @content = value end |