Module: Structurizr::REPL::Delegation
- Included in:
- Context
- Defined in:
- lib/structurizr/repl.rb
Overview
Simple module which defines a reader for a nested attribute
Instance Method Summary collapse
Instance Method Details
#delegate(*methods, to:) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/structurizr/repl.rb', line 10 def delegate(*methods, to:) methods.each do |method| define_method method do public_send(to).public_send(method) end end end |