method

yamler=

ruby latest stable - Class: YAML::EngineManager

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_392) is shown here.

yamler=(engine)
public

No documentation available.

# File lib/yaml.rb, line 28
    def yamler= engine
      raise(ArgumentError, "bad engine") unless %{syck psych}.include?(engine)

      require engine unless (engine == 'syck' ? Syck : Psych).const_defined?(:VERSION)

      Object.class_eval         remove_const 'YAML'        YAML = #{engine.capitalize}        remove_method :to_yaml        alias :to_yaml :#{engine}_to_yaml, __FILE__, __LINE__ + 1

      @yamler = engine
      engine
    end