Class: Leonidas::Dsl::ConfigurationExpression

Inherits:
Object
  • Object
show all
Defined in:
lib/leonidas/dsl/configuration_expression.rb

Instance Method Summary collapse

Instance Method Details

#add_app_state_builder(builder_class) ⇒ Object



10
11
12
# File 'lib/leonidas/dsl/configuration_expression.rb', line 10

def add_app_state_builder(builder_class)
	::Leonidas::PersistenceLayer::Persister.add_state_builder! builder_class.new
end

#persister_class_is(persister_class) ⇒ Object



6
7
8
# File 'lib/leonidas/dsl/configuration_expression.rb', line 6

def persister_class_is(persister_class)
	::Leonidas::PersistenceLayer::Persister.set_app_persister! persister_class.new
end