class Rabbit::YAMLLoader

Public Class Methods

load(yaml) click to toggle source
# File lib/rabbit/yaml-loader.rb, line 23
def load(yaml)
  new(yaml).load
end
new(yaml) click to toggle source
# File lib/rabbit/yaml-loader.rb, line 28
def initialize(yaml)
  @yaml = yaml
end

Public Instance Methods

load() click to toggle source
# File lib/rabbit/yaml-loader.rb, line 32
def load
  YAML.safe_load(@yaml,
                 permitted_classes: [
                   Date, Symbol,
                 ])
end