Class: Ilovepdf::Signature::TextElement

Inherits:
Object
  • Object
show all
Includes:
FileElement
Defined in:
lib/ilovepdf/signature/text_element.rb

Instance Method Summary collapse

Methods included from FileElement

included

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