Class: Ribbon::Config::ProcArray
- Inherits:
-
Array
- Object
- Array
- Ribbon::Config::ProcArray
- Defined in:
- lib/ribbon/config.rb
Instance Method Summary collapse
Instance Method Details
#call(*args, &block) ⇒ Object
18 19 20 |
# File 'lib/ribbon/config.rb', line 18 def call(*args, &block) map { |x| x.call(*args, &block) } end |
#push(*procs) ⇒ Object
13 14 15 16 |
# File 'lib/ribbon/config.rb', line 13 def push(*procs) raise ConfigError, "May only add blocks" unless procs.all? { |p| p.is_a?(Proc) } super end |