Module: Staticky::Resources::Plugins::Prelude::ClassMethods
- Defined in:
- lib/staticky/resources/plugins/prelude.rb
Instance Method Summary collapse
Instance Method Details
#new(**env) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/staticky/resources/plugins/prelude.rb', line 8 def new(**env) super().tap do |resource| env.each do |key, value| resource.send(:"#{key}=", value) end end end |