Flowdock
method

yamler=

Importance_0
Ruby latest stable (v1_9_3_392) - 0 notes - Class: EngineManager
yamler=(engine) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# 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
Register or log in to add new notes.