Module: Psychgus::PsychDropIn
- Included in:
- Psychgus
- Defined in:
- lib/psychgus.rb
Overview
Note:
For devs/hacking: because extend is used, do not prefix methods with “self.”
Unnecessary Methods
All of the below methods are not needed, but are defined so that Psychgus can be a drop-in replacement for Psych.
Instead, you should probably use Psych. This is also the recommended practice in case your version of Psych defines the method differently.
Private methods of Psych are not defined.
Instance Method Summary collapse
- #add_builtin_type(*args, &block) ⇒ Object
- #add_domain_type(*args, &block) ⇒ Object
- #add_tag(*args) ⇒ Object
- #load(*args, **kargs) ⇒ Object
- #load_file(*args, **kargs) ⇒ Object
- #load_stream(*args, **kargs) ⇒ Object
- #remove_type(*args) ⇒ Object
- #safe_load(*args, **kargs) ⇒ Object
- #to_json(*args) ⇒ Object
Instance Method Details
#add_builtin_type(*args, &block) ⇒ Object
756 757 758 |
# File 'lib/psychgus.rb', line 756 def add_builtin_type(*args,&block) Psych.add_builtin_type(*args,&block) end |
#add_domain_type(*args, &block) ⇒ Object
761 762 763 |
# File 'lib/psychgus.rb', line 761 def add_domain_type(*args,&block) Psych.add_domain_type(*args,&block) end |
#add_tag(*args) ⇒ Object
766 767 768 |
# File 'lib/psychgus.rb', line 766 def add_tag(*args) Psych.add_tag(*args) end |
#load(*args, **kargs) ⇒ Object
771 772 773 |
# File 'lib/psychgus.rb', line 771 def load(*args,**kargs) Psych.load(*args,**kargs) end |
#load_file(*args, **kargs) ⇒ Object
776 777 778 |
# File 'lib/psychgus.rb', line 776 def load_file(*args,**kargs) Psych.load_file(*args,**kargs) end |
#load_stream(*args, **kargs) ⇒ Object
781 782 783 |
# File 'lib/psychgus.rb', line 781 def load_stream(*args,**kargs) Psych.load_stream(*args,**kargs) end |
#remove_type(*args) ⇒ Object
786 787 788 |
# File 'lib/psychgus.rb', line 786 def remove_type(*args) Psych.remove_type(*args) end |
#safe_load(*args, **kargs) ⇒ Object
791 792 793 |
# File 'lib/psychgus.rb', line 791 def safe_load(*args,**kargs) Psych.safe_load(*args,**kargs) end |
#to_json(*args) ⇒ Object
796 797 798 |
# File 'lib/psychgus.rb', line 796 def to_json(*args) Psych.to_json(*args) end |