Module: Prune::PObjects

Included in:
Document, Elements::Base, Fonts::Base, Prune::Parsers::Base
Defined in:
lib/prune/p_objects/base.rb,
lib/prune/p_objects/p_name.rb,
lib/prune/p_objects/aliases.rb,
lib/prune/p_objects/p_array.rb,
lib/prune/p_objects/p_stream.rb,
lib/prune/p_objects/p_dictionary.rb,
lib/prune/p_objects/p_literal_string.rb,
lib/prune/p_objects/p_hexadecimal_string.rb

Defined Under Namespace

Classes: Base, PArray, PDictionary, PHexadecimalString, PLiteralString, PName, PStream

Class Method Summary collapse

Class Method Details

.pa(*args) ⇒ Object

Alias for PArray.new



7
8
9
# File 'lib/prune/p_objects/aliases.rb', line 7

def pa(*args)
  PArray.new(*args)
end

.pd(hash = {}) ⇒ Object

Alias for PDictionary.new



12
13
14
# File 'lib/prune/p_objects/aliases.rb', line 12

def pd(hash = {})
  PDictionary.new(hash)
end

.ph(string) ⇒ Object

Alias for PHexadecimalString.new



17
18
19
# File 'lib/prune/p_objects/aliases.rb', line 17

def ph(string)
  PHexadecimalString.new(string)
end

.pl(string) ⇒ Object

Alias for PLiteralString.new



22
23
24
# File 'lib/prune/p_objects/aliases.rb', line 22

def pl(string)
  PLiteralString.new(string)
end

.pn(name) ⇒ Object

Alias for PName.new



27
28
29
# File 'lib/prune/p_objects/aliases.rb', line 27

def pn(name)
  PName.new(name)
end

.psObject

Alias for PStream.new



32
33
34
# File 'lib/prune/p_objects/aliases.rb', line 32

def ps
  PStream.new
end