Class Regexp
In: lib/core_ex/yaml.rb
Parent: Object

Methods

Public Class methods

[Source]

# File lib/core_ex/yaml.rb, line 105
  def self.yaml_load ( val )
    if val.is_a? Array and val.size == 2
      options = 0
      val.last.split(//).each do |opt|
        options |= @@options[opt]
      end
      new(val.first, options)
    else
      new(val.to_s)
    end
  end

Public Instance methods

[Source]

# File lib/core_ex/yaml.rb, line 94
  def to_yaml_string
    source
  end

[Validate]