Class: EideticPDF::PdfObjects::PdfBoolean

Inherits:
Object
  • Object
show all
Defined in:
lib/epdfo.rb

Overview

direct objects

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject (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_sObject



89
90
91
# File 'lib/epdfo.rb', line 89

def to_s
  value ? 'true ' : 'false '
end