Module: Fend::Plugins::Dependencies::ClassMethods
- Defined in:
- lib/fend/plugins/dependencies.rb
Instance Attribute Summary collapse
-
#specified_dependencies ⇒ Object
readonly
Returns the value of attribute specified_dependencies.
Instance Method Summary collapse
Instance Attribute Details
#specified_dependencies ⇒ Object (readonly)
Returns the value of attribute specified_dependencies.
69 70 71 |
# File 'lib/fend/plugins/dependencies.rb', line 69 def specified_dependencies @specified_dependencies end |
Instance Method Details
#validate(opts = {}, &block) ⇒ Object
71 72 73 74 75 76 77 78 79 |
# File 'lib/fend/plugins/dependencies.rb', line 71 def validate(opts = {}, &block) if opts.key?(:inject) raise ArgumentError, ":inject option value must be an array" unless opts[:inject].is_a?(Array) @specified_dependencies = opts[:inject] unless opts[:inject].nil? end super(&block) end |