Class: ActiveLoader::YamlLoader
- Inherits:
-
Object
- Object
- ActiveLoader::YamlLoader
- Defined in:
- lib/active_loader/yaml_loader.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(raw_content) ⇒ YamlLoader
constructor
A new instance of YamlLoader.
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
#call ⇒ Object
12 13 14 |
# File 'lib/active_loader/yaml_loader.rb', line 12 def call ensure_correct_type(safe_load) end |