Class: Evil::Client::Builder::Scope
- Inherits:
-
Evil::Client::Builder
- Object
- Evil::Client::Builder
- Evil::Client::Builder::Scope
- Defined in:
- lib/evil/client/builder/scope.rb
Overview
Lazy container for a [#schema] and [#parent] settings of a [#new] scope to be initialized with its own options, that reload the [#parent] ones.
Instance Attribute Summary
Attributes inherited from Evil::Client::Builder
Instance Method Summary collapse
-
#new(options) ⇒ Evil::Client::Container::Scope
(also: #call, #[])
Builds new scope with options reloading those of its [#parent].
-
#to_s ⇒ String
Human-readable representation of the handler.
Methods inherited from Evil::Client::Builder
Instance Method Details
#new(options) ⇒ Evil::Client::Container::Scope Also known as: call, []
Builds new scope with options reloading those of its [#parent]
25 26 27 |
# File 'lib/evil/client/builder/scope.rb', line 25 def new(**) Container::Scope.new schema, **parent..merge() end |
#to_s ⇒ String
Human-readable representation of the handler
15 16 17 |
# File 'lib/evil/client/builder/scope.rb', line 15 def to_s "#{parent}.scopes[:#{schema.name}]" end |