Class: Modular

Inherits:
Object
  • Object
show all
Defined in:
lib/sorcery/test_helpers/internal/sinatra_modular.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.sorcery_varsObject

Returns the value of attribute sorcery_vars.



10
11
12
# File 'lib/sorcery/test_helpers/internal/sinatra_modular.rb', line 10

def sorcery_vars
  @sorcery_vars
end

Instance Method Details

#save_instance_varsObject

NOTE: see before and after test filters in filters.rb



16
17
18
19
20
# File 'lib/sorcery/test_helpers/internal/sinatra_modular.rb', line 16

def save_instance_vars
  instance_variables.each do |var|
    self.class.sorcery_vars[:"#{var.to_s.delete("@")}"] = instance_variable_get(var)
  end
end