Class: PDFRavager::Fields::Text

Inherits:
Object
  • Object
show all
Includes:
PDFRavager::FieldTypes::AcroForm, PDFRavager::FieldTypes::XFA
Defined in:
lib/pdf_ravager/fields/text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from PDFRavager::FieldTypes::XFA

#set_xfa_value, #xfa_name, #xfa_node_type, #xfa_value

Methods included from PDFRavager::FieldTypes::AcroForm

#acro_form_name, #acro_form_value, #set_acro_form_value

Constructor Details

#initialize(name, value) ⇒ Text

Returns a new instance of Text.



12
13
14
# File 'lib/pdf_ravager/fields/text.rb', line 12

def initialize(name, value)
  @name, @value = name, value
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/pdf_ravager/fields/text.rb', line 10

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



10
11
12
# File 'lib/pdf_ravager/fields/text.rb', line 10

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object



16
17
18
# File 'lib/pdf_ravager/fields/text.rb', line 16

def ==(other)
  self.name == other.name && self.value == other.value
end