Module: Psychgus::PsychDropIn

Included in:
Psychgus
Defined in:
lib/psychgus.rb

Overview

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.

Because extend is used, do not prefix methods with “self.”

Author:

  • Jonathan Bradley Whited (@esotericpig)

Since:

  • 1.0.0

Instance Method Summary collapse

Instance Method Details

#add_builtin_type(*args, &block) ⇒ Object

See Also:

  • Psych.add_builtin_type

Since:

  • 1.0.0


647
648
649
# File 'lib/psychgus.rb', line 647

def add_builtin_type(*args,&block)
  Psych.add_builtin_type(*args,&block)
end

#add_domain_type(*args, &block) ⇒ Object

See Also:

  • Psych.add_domain_type

Since:

  • 1.0.0


652
653
654
# File 'lib/psychgus.rb', line 652

def add_domain_type(*args,&block)
  Psych.add_domain_type(*args,&block)
end

#add_tag(*args) ⇒ Object

See Also:

  • Psych.add_tag

Since:

  • 1.0.0


657
658
659
# File 'lib/psychgus.rb', line 657

def add_tag(*args)
  Psych.add_tag(*args)
end

#load(*args, **kargs) ⇒ Object

See Also:

  • Psych.load

Since:

  • 1.0.0


662
663
664
# File 'lib/psychgus.rb', line 662

def load(*args,**kargs)
  Psych.load(*args,**kargs)
end

#load_file(*args, **kargs) ⇒ Object

See Also:

  • Psych.load_file

Since:

  • 1.0.0


667
668
669
# File 'lib/psychgus.rb', line 667

def load_file(*args,**kargs)
  Psych.load_file(*args,**kargs)
end

#load_stream(*args, **kargs) ⇒ Object

See Also:

  • Psych.load_stream

Since:

  • 1.0.0


672
673
674
# File 'lib/psychgus.rb', line 672

def load_stream(*args,**kargs)
  Psych.load_stream(*args,**kargs)
end

#remove_type(*args) ⇒ Object

See Also:

  • Psych.remove_type

Since:

  • 1.0.0


677
678
679
# File 'lib/psychgus.rb', line 677

def remove_type(*args)
  Psych.remove_type(*args)
end

#safe_load(*args, **kargs) ⇒ Object

See Also:

  • Psych.safe_load

Since:

  • 1.0.0


682
683
684
# File 'lib/psychgus.rb', line 682

def safe_load(*args,**kargs)
  Psych.safe_load(*args,**kargs)
end

#to_json(*args) ⇒ Object

See Also:

  • Psych.to_json

Since:

  • 1.0.0


687
688
689
# File 'lib/psychgus.rb', line 687

def to_json(*args)
  Psych.to_json(*args)
end