Class: ActiveLoader::JsonLoader

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

Instance Method Summary collapse

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

#callObject



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

def call
  safe_load
end