Class: Solid::Process::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/solid/process/config.rb

Constant Summary collapse

SolidModel =
->(klass) do
  return klass if klass.is_a?(::Class) && klass < ::Solid::Model

  raise ArgumentError, "#{klass.inspect} must be a class that includes #{::Solid::Model}"
end

Class Attribute Summary collapse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



13
14
15
16
# File 'lib/solid/process/config.rb', line 13

def initialize
  self.input_class = ::Solid::Input
  self.dependencies_class = ::Solid::Input
end

Class Attribute Details

.instanceObject (readonly)

Returns the value of attribute instance.



30
31
32
# File 'lib/solid/process/config.rb', line 30

def instance
  @instance
end

Instance Attribute Details

#dependencies_classObject Also known as: deps_class

Returns the value of attribute dependencies_class.



11
12
13
# File 'lib/solid/process/config.rb', line 11

def dependencies_class
  @dependencies_class
end

#input_classObject

Returns the value of attribute input_class.



11
12
13
# File 'lib/solid/process/config.rb', line 11

def input_class
  @input_class
end