Class: PDF::Core::NameTree::Value Private
- Inherits:
-
Object
- Object
- PDF::Core::NameTree::Value
- Includes:
- Comparable
- Defined in:
- lib/pdf/core/name_tree.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Name Tree value
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
private
-
#value ⇒ any
readonly
private
Instance Method Summary collapse
-
#<=>(other) ⇒ -1, ...
private
-
#initialize(name, value) ⇒ Value
constructor
private
A new instance of Value.
-
#inspect ⇒ String
private
A string containing a human-readable representation of this value object.
-
#to_s ⇒ String
private
A string representation of this value.
Constructor Details
#initialize(name, value) ⇒ Value
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Value.
Source Code
215 | def initialize(name, value) |
216 | @name = PDF::Core::LiteralString.new(name) |
217 | @value = value |
218 | end
|
Instance Attribute Details
#name ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Source Code
208 | def name |
209 | @name
|
210 | end
|
#value ⇒ any (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Source Code
211 | def value |
212 | @value
|
213 | end
|
Instance Method Details
#<=>(other) ⇒ -1, ...
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Source Code
224 | def <=>(other) |
225 | name <=> other.name |
226 | end
|
#inspect ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a string containing a human-readable representation of this value object.
Source Code
230 | def inspect |
231 | "#<Value: #{name.inspect} : #{value.inspect}>" |
232 | end
|
#to_s ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a string representation of this value.
Source Code
235 | def to_s |
236 | "#{name} : #{value}" |
237 | end
|