Class: PDFRavager::Fields::Text
- Inherits:
-
Object
- Object
- PDFRavager::Fields::Text
- Defined in:
- lib/pdf_ravager/fields/text.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name, value) ⇒ Text
constructor
A new instance of Text.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/pdf_ravager/fields/text.rb', line 10 def name @name end |
#value ⇒ Object (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 |