Class: ActiveLoader::JsonLoader
- Inherits:
-
Object
- Object
- ActiveLoader::JsonLoader
- Defined in:
- lib/active_loader/json_loader.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(raw_content) ⇒ JsonLoader
constructor
A new instance of JsonLoader.
Constructor Details
#initialize(raw_content) ⇒ JsonLoader
Returns a new instance of JsonLoader.
8 9 10 |
# File 'lib/active_loader/json_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/json_loader.rb', line 12 def call safe_load end |