Class: EideticPDF::PdfObjects::PdfNumber
- Inherits:
-
Object
- Object
- EideticPDF::PdfObjects::PdfNumber
- Defined in:
- lib/epdfo.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
-
#initialize(value) ⇒ PdfNumber
constructor
A new instance of PdfNumber.
- #to_s ⇒ Object
Constructor Details
#initialize(value) ⇒ PdfNumber
Returns a new instance of PdfNumber.
101 102 103 |
# File 'lib/epdfo.rb', line 101 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
99 100 101 |
# File 'lib/epdfo.rb', line 99 def value @value end |
Instance Method Details
#==(other) ⇒ Object
113 114 115 |
# File 'lib/epdfo.rb', line 113 def ==(other) other.respond_to?(:value) && self.value == other.value end |
#eql?(other) ⇒ Boolean
109 110 111 |
# File 'lib/epdfo.rb', line 109 def eql?(other) self.value.eql?(other.value) end |
#to_s ⇒ Object
105 106 107 |
# File 'lib/epdfo.rb', line 105 def to_s "#{value} " end |