Class: Evil::Client::Builder Abstract

Inherits:
Object
  • Object
show all
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.

Direct Known Subclasses

Operation, Scope

Defined Under Namespace

Classes: Operation, Scope

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#parentEvil::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

#schemaEvil::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

#inspectString

Alias method for [#to_s]

Returns:

  • (String)


38
39
40
# File 'lib/evil/client/builder.rb', line 38

def inspect
  to_s
end

#to_strString

Alias method for [#to_s]

Returns:

  • (String)


30
31
32
# File 'lib/evil/client/builder.rb', line 30

def to_str
  to_s
end