Class: Fixturama::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/fixturama/loader.rb,
lib/fixturama/loader/value.rb,
lib/fixturama/loader/context.rb

Overview

Load fixture with some options

Defined Under Namespace

Classes: Context, Value

Instance Method Summary collapse

Instance Method Details

#callObject



8
9
10
11
12
13
# File 'lib/fixturama/loader.rb', line 8

def call
  return load_yaml if yaml?
  return load_json if json?

  content
end