lib/combine_pdf/renderer.rb in combine_pdf-0.2.32 vs lib/combine_pdf/renderer.rb in combine_pdf-0.2.33
- old
+ new
@@ -18,11 +18,11 @@
return format_string_to_pdf object
elsif object.is_a?(Symbol)
return format_name_to_pdf object
elsif object.is_a?(Array)
return format_array_to_pdf object
- elsif object.is_a?(Fixnum) || object.is_a?(Float) || object.is_a?(TrueClass) || object.is_a?(FalseClass)
+ elsif object.is_a?(Integer) || object.is_a?(Float) || object.is_a?(TrueClass) || object.is_a?(FalseClass)
return object.to_s
elsif object.is_a?(Hash)
return format_hash_to_pdf object
else
return ''
@@ -152,11 +152,11 @@
elsif object.is_a?(Hash)
return {}.tap { |out| object.each { |k, v| out[create_deep_copy(k)] = create_deep_copy(v) unless k == :Parent } }
elsif object.is_a?(String)
return object.dup
else
- return object # objects that aren't Strings, Arrays or Hashes (such as Symbols and Fixnums) won't be edited inplace.
+ return object # objects that aren't Strings, Arrays or Hashes (such as Symbols and Integers) won't be edited inplace.
end
end
end
end
@@ -167,7 +167,7 @@
# PDF object types cross reference:
# Indirect objects, references, dictionaries and streams are Hash
# arrays are Array
# strings are String
# names are Symbols (String.to_sym)
-# numbers are Fixnum or Float
+# numbers are Integers or Float
# boolean are TrueClass or FalseClass