Class: ActiveLoader::YamlLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/active_loader/yaml_loader.rb

Instance Method Summary collapse

Constructor Details

#initialize(raw_content) ⇒ YamlLoader

Returns a new instance of YamlLoader.



8
9
10
# File 'lib/active_loader/yaml_loader.rb', line 8

def initialize(raw_content)
  @raw_content = raw_content.to_s
end

Instance Method Details

#callObject



12
13
14
# File 'lib/active_loader/yaml_loader.rb', line 12

def call
  ensure_correct_type(safe_load)
end