Module: Quiver::AbstractAction
- Defined in:
- lib/quiver/abstract_action.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(host) ⇒ Object
3 4 5 6 |
# File 'lib/quiver/abstract_action.rb', line 3 def self.included(host) host.send(:include, Lotus::Action) host.extend(ClassMethods) end |
Instance Method Details
#arrayify(arg) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/quiver/abstract_action.rb', line 23 def arrayify(arg) if arg.is_a?(Array) arg else [arg] end end |
#call(params) ⇒ Object
18 19 20 21 |
# File 'lib/quiver/abstract_action.rb', line 18 def call(params) # because ruby < 2.2.0, pry, and Module.prepend aren't friends internal_call(params) end |