Class: Fixturama::Loader
- Inherits:
-
Object
- Object
- Fixturama::Loader
- 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
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
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 |