Class: Pipeable::Builder

Inherits:
Module
  • Object
show all
Defined in:
lib/pipeable/builder.rb

Overview

Defines the pipe and and associated step methods for an object.

Instance Method Summary collapse

Constructor Details

#initialize(container = Steps::Container, pipe: Pipe) ⇒ Builder

Returns a new instance of Builder.



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/pipeable/builder.rb', line 13

def initialize container = Steps::Container, pipe: Pipe
  super()

  @container = container
  @pipe = pipe

  define_pipe
  define_steps

  freeze
end