Class: Origami::Action::JavaScript
- Inherits:
-
Origami::Action
- Object
- Hash
- Dictionary
- Origami::Action
- Origami::Action::JavaScript
- Defined in:
- lib/origami/actions.rb
Overview
Class representing a JavaScript Action.
Constant Summary
Constants included from StandardObject
StandardObject::DEFAULT_ATTRIBUTES
Constants inherited from Dictionary
Constants included from Object
Instance Attribute Summary
Attributes inherited from Dictionary
#names_cache, #strings_cache, #xref_cache
Attributes included from Object
#file_offset, #generation, #no, #objstm_offset, #parent
Instance Method Summary collapse
-
#initialize(script) ⇒ JavaScript
constructor
Creates a new JavaScript Action.
Methods included from StandardObject
#do_type_check, #has_field?, included, #pdf_version_required, #pre_build, #set_default_value, #set_default_values
Methods inherited from Dictionary
#[], #[]=, #delete, #has_key?, #map!, #merge, #method_missing, parse, #real_type, #to_obfuscated_str, #to_s
Methods included from Object
#<=>, #copy, #export, #indirect_parent, #is_indirect?, #logicalize, #logicalize!, parse, #pdf, #pdf_version_required, #post_build, #pre_build, #reference, #resolve_all_references, #set_indirect, #set_pdf, #size, skip_until_next_obj, #solve, #to_o, #to_s, #type, typeof, #xrefs
Methods inherited from Hash
Constructor Details
#initialize(script) ⇒ JavaScript
Creates a new JavaScript Action.
- script
-
The script to be executed.
112 113 114 |
# File 'lib/origami/actions.rb', line 112 def initialize(script) super(:JS => script) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Origami::Dictionary