Class: Evil::Client::Builder Abstract
- Inherits:
-
Object
- Object
- Evil::Client::Builder
- Defined in:
- lib/evil/client/builder.rb
Overview
This class is abstract.
Base class for scope/operation builders
Every builder just wraps scope/operation schema along with preinitialized [#parent] settings of its super-scope. The instance method [#new] quacks like the lazy constructor for scope/operation instance whose options reload the [#parent]‘s ones.
Defined Under Namespace
Instance Attribute Summary collapse
-
#parent ⇒ Evil::Client::Container::Scope
readonly
The instance of parent scope carrying default settings.
-
#schema ⇒ Evil::Client::Schema
readonly
The schema for an instance to be constructed via [#new].
Instance Method Summary collapse
-
#inspect ⇒ String
Alias method for [#to_s].
-
#to_str ⇒ String
Alias method for [#to_s].
Instance Attribute Details
#parent ⇒ Evil::Client::Container::Scope (readonly)
The instance of parent scope carrying default settings
24 25 26 |
# File 'lib/evil/client/builder.rb', line 24 def parent @parent end |
#schema ⇒ Evil::Client::Schema (readonly)
The schema for an instance to be constructed via [#new]
20 21 22 |
# File 'lib/evil/client/builder.rb', line 20 def schema @schema end |
Instance Method Details
#inspect ⇒ String
Alias method for [#to_s]
38 39 40 |
# File 'lib/evil/client/builder.rb', line 38 def inspect to_s end |
#to_str ⇒ String
Alias method for [#to_s]
30 31 32 |
# File 'lib/evil/client/builder.rb', line 30 def to_str to_s end |