Class: Pdfrb::Model::Type::DestsMap
- Inherits:
-
Cos::Dictionary
- Object
- Object
- Cos::Dictionary
- Pdfrb::Model::Type::DestsMap
- Defined in:
- lib/pdfrb/model/type/destination.rb
Overview
/Dests dictionary (s7.7.4, deprecated 2.0). Name → destination map living on the (page or) catalog.
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
Methods inherited from Cos::Dictionary
#[]=, apply_arlington_definition, arlington_default, arlington_key_to_symbol, arlington_one_type_to_ruby, arlington_required?, arlington_types_to_ruby, arlington_version, define_field, define_field_from_arlington, #delete, #each, each_field, #each_raw, #empty?, field, #initialize, #key?, #keys, lookup_type, merged_field, own_fields, #pdf_type, register_type, type_map, #validate
Methods included from Cos::ArlingtonBacked
Methods inherited from Object
#==, define_type, #deref, #indirect?, #initialize, #must_be_indirect?, #pdf_type, pdf_type
Constructor Details
This class inherits a constructor from Pdfrb::Model::Cos::Dictionary
Instance Method Details
#[](name) ⇒ Object
115 116 117 |
# File 'lib/pdfrb/model/type/destination.rb', line 115 def [](name) value[name.to_sym] || value[name.to_s] end |
#add(name, destination) ⇒ Object
119 120 121 122 |
# File 'lib/pdfrb/model/type/destination.rb', line 119 def add(name, destination) value[name.to_sym] = destination name.to_sym end |
#each_destination ⇒ Object
124 125 126 127 128 |
# File 'lib/pdfrb/model/type/destination.rb', line 124 def each_destination(&) return enum_for(:each_destination) unless block_given? value.each(&) end |
#names ⇒ Object
130 131 132 |
# File 'lib/pdfrb/model/type/destination.rb', line 130 def names value.keys end |