Class: Origami::Null
- Inherits:
-
Object
- Object
- Origami::Null
- Includes:
- Object
- Defined in:
- lib/origami/null.rb,
lib/origami/obfuscation.rb
Overview
Class representing Null Object.
Constant Summary collapse
- TOKENS =
:nodoc:
%w{ null }
- @@regexp =
Regexp.new(WHITESPACES + TOKENS.first)
Instance Attribute Summary
Attributes included from Object
#file_offset, #generation, #no, #objstm_offset, #parent
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Null
constructor
A new instance of Null.
-
#to_s ⇒ Object
(also: #to_obfuscated_str)
:nodoc:.
-
#value ⇒ Object
Returns nil.
Methods included from Object
#<=>, #cast_to, #copy, #export, #indirect_parent, #is_indirect?, #logicalize, #logicalize!, #native_type, #pdf, #pdf_version_required, #post_build, #pre_build, #reference, #resolve_all_references, #set_indirect, #set_pdf, #size, skip_until_next_obj, #solve, #to_o, #type, typeof, #xrefs
Constructor Details
#initialize ⇒ Null
Returns a new instance of Null.
42 43 44 |
# File 'lib/origami/null.rb', line 42 def initialize super end |
Class Method Details
.parse(stream, parser = nil) ⇒ Object
:nodoc:
46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/origami/null.rb', line 46 def self.parse(stream, parser = nil) #:nodoc: offset = stream.pos if stream.skip(@@regexp).nil? raise InvalidNullObjectError end null = Null.new null.file_offset = offset null end |