Class: Chainy::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/chainy/config.rb

Constant Summary collapse

DEFAULT_CHAIN_METHOD_PREFIX =
'with'

Class Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



5
6
7
# File 'lib/chainy/config.rb', line 5

def configure
  yield self if block_given?
end

.prefixObject



9
10
11
# File 'lib/chainy/config.rb', line 9

def prefix
  @prefix ||= DEFAULT_CHAIN_METHOD_PREFIX
end

.prefix=(prefix) ⇒ Object



13
14
15
# File 'lib/chainy/config.rb', line 13

def prefix=(prefix)
  @prefix = prefix
end