Module: Runbook::Extensions::Statements::DSL
- Defined in:
- lib/runbook/extensions/statements.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
._statement_class(name) ⇒ Object
22 23 24 25 |
# File 'lib/runbook/extensions/statements.rb', line 22 def self._statement_class(name) "Runbook::Statements::#{name.to_s.camelize}".constantize rescue NameError end |
Instance Method Details
#respond_to?(name, include_private = false) ⇒ Boolean
18 19 20 |
# File 'lib/runbook/extensions/statements.rb', line 18 def respond_to?(name, include_private = false) !!(Statements::DSL._statement_class(name) || super) end |