lib/prawn/core/page.rb
# some entries in the Page dict can be inherited from parent Pages dicts.
#
# Starting with the current page dict, this method will walk up the
# inheritance chain return the first value that is found for key
#
#     inherited_dictionary_value(:MediaBox)
#     => [ 0, 0, 595, 842 ]
#
some entries in the Page dict can be inherited from parent Pages dicts.
Starting with the current page dict, this method will walk up the
inheritance chain return the first value that is found for key


some entries in the Page dict can be inherited from parent Pages dicts . Starting with the current page dict this method will walk up the inheritance chain return the first value that is found for key
def inherited_dictionary_value(key, local_dict = nil)
        local_dict ||= dictionary.data
        if local_dict.has_key?(key)
          local_dict[key]
        elsif local_dict.has_key?(:Parent)
          inherited_dictionary_value(key, local_dict[:Parent].data)
        else
          nil
        end
      end
def inherited_dictionary_value ( key , local_dict = nil ) local_dict ||= dictionary . data if local_dict . has_key? ( key ) local_dict [ key ] elsif local_dict . has_key? ( :Parent ) inherited_dictionary_value ( key , local_dict [ :Parent ] . data ) else nil end end
some entries in the Page dict can be inherited from parent Pages dicts.
some entries in the Page dict can be inherited from parent Pages dicts .
key
<not_specific>
local_dict
<not_specific>