Module: Reactor::Plans::Prepared
- Included in:
- CommonAttribute, CommonAttributeGroup, CommonChannel, CommonGroup, CommonJob, CommonObjClass, DeleteObj, DeleteObjClass, RenameGroup, RenameObjClass, UpdateObj, UpdateObjClass
- Defined in:
- lib/reactor/plans/prepared.rb
Instance Method Summary collapse
Instance Method Details
#error(message) ⇒ Object
4 5 6 |
# File 'lib/reactor/plans/prepared.rb', line 4 def error() "#{self.class.name}: #{}" end |
#separate_arguments(*args) ⇒ Object
8 9 10 11 12 |
# File 'lib/reactor/plans/prepared.rb', line 8 def separate_arguments(*args) array_args = args.select { |a| !a.is_a?(Hash) } hash_args = args.select { |a| a.is_a?(Hash) }.reduce({}, &:merge) [array_args, hash_args] end |