Class: EideticPDF::PdfObjects::PdfBoolean
- Inherits:
-
Object
- Object
- EideticPDF::PdfObjects::PdfBoolean
- Defined in:
- lib/epdfo.rb
Overview
direct objects
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value) ⇒ PdfBoolean
constructor
A new instance of PdfBoolean.
- #to_s ⇒ Object
Constructor Details
#initialize(value) ⇒ PdfBoolean
Returns a new instance of PdfBoolean.
85 86 87 |
# File 'lib/epdfo.rb', line 85 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
83 84 85 |
# File 'lib/epdfo.rb', line 83 def value @value end |
Instance Method Details
#==(other) ⇒ Object
93 94 95 |
# File 'lib/epdfo.rb', line 93 def ==(other) other.respond_to?(:value) && self.value == other.value end |
#to_s ⇒ Object
89 90 91 |
# File 'lib/epdfo.rb', line 89 def to_s value ? 'true ' : 'false ' end |