Class: AssistedWorkflow::Addons::Base
- Inherits:
-
Object
- Object
- AssistedWorkflow::Addons::Base
show all
- Defined in:
- lib/assisted_workflow/addons/base.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(output, options = {}) ⇒ Base
Returns a new instance of Base.
5
6
7
8
|
# File 'lib/assisted_workflow/addons/base.rb', line 5
def initialize(output, options = {})
@output = output
validate_options!(options)
end
|
Class Method Details
.get_required_options ⇒ Object
24
25
26
|
# File 'lib/assisted_workflow/addons/base.rb', line 24
def get_required_options
@required_options || []
end
|
.required_options(*args) ⇒ Object
20
21
22
|
# File 'lib/assisted_workflow/addons/base.rb', line 20
def required_options(*args)
@required_options = Array(args).map(&:to_s)
end
|
Instance Method Details
#name ⇒ Object
10
11
12
|
# File 'lib/assisted_workflow/addons/base.rb', line 10
def name
self.class.name.downcase.split("::").last
end
|
#valid? ⇒ Boolean
14
15
16
|
# File 'lib/assisted_workflow/addons/base.rb', line 14
def valid?
false
end
|