Class: Alchemy::Configuration::ClassSetOption
- Inherits:
-
BaseOption
- Object
- BaseOption
- Alchemy::Configuration::ClassSetOption
show all
- Includes:
- Enumerable
- Defined in:
- lib/alchemy/configuration/class_set_option.rb
Instance Attribute Summary
Attributes inherited from BaseOption
#name
Instance Method Summary
collapse
Methods inherited from BaseOption
#initialize, value_class
Instance Method Details
#<<(klass) ⇒ Object
12
13
14
|
# File 'lib/alchemy/configuration/class_set_option.rb', line 12
def <<(klass)
@value << klass.to_s
end
|
#as_json ⇒ Object
36
|
# File 'lib/alchemy/configuration/class_set_option.rb', line 36
def as_json = @value
|
#concat(klasses) ⇒ Object
16
17
18
19
20
21
22
|
# File 'lib/alchemy/configuration/class_set_option.rb', line 16
def concat(klasses)
klasses.each do |klass|
self << klass
end
self
end
|
#delete(object) ⇒ Object
26
27
28
|
# File 'lib/alchemy/configuration/class_set_option.rb', line 26
def delete(object)
@value.delete(object.to_s)
end
|
#each ⇒ Object
30
31
32
33
34
|
# File 'lib/alchemy/configuration/class_set_option.rb', line 30
def each
@value.each do |klass|
yield klass.constantize
end
end
|
#value ⇒ Object
10
|
# File 'lib/alchemy/configuration/class_set_option.rb', line 10
def value = self
|