Class: Karafka::Core::Configurable::Leaf

Inherits:
Struct
  • Object
show all
Defined in:
lib/karafka/core/configurable/leaf.rb

Overview

Single end config value representation

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#compiledObject

Returns the value of attribute compiled

Returns:

  • (Object)

    the current value of compiled



7
8
9
# File 'lib/karafka/core/configurable/leaf.rb', line 7

def compiled
  @compiled
end

#constructorObject

Returns the value of attribute constructor

Returns:

  • (Object)

    the current value of constructor



7
8
9
# File 'lib/karafka/core/configurable/leaf.rb', line 7

def constructor
  @constructor
end

#defaultObject

Returns the value of attribute default

Returns:

  • (Object)

    the current value of default



7
8
9
# File 'lib/karafka/core/configurable/leaf.rb', line 7

def default
  @default
end

#lazyObject

Returns the value of attribute lazy

Returns:

  • (Object)

    the current value of lazy



7
8
9
# File 'lib/karafka/core/configurable/leaf.rb', line 7

def lazy
  @lazy
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



7
8
9
# File 'lib/karafka/core/configurable/leaf.rb', line 7

def name
  @name
end

Instance Method Details

#compiled?Boolean

Returns true if already compiled.

Returns:

  • (Boolean)

    true if already compiled



9
10
11
# File 'lib/karafka/core/configurable/leaf.rb', line 9

def compiled?
  compiled
end

#lazy?Boolean

Returns is this a lazy evaluated leaf.

Returns:

  • (Boolean)

    is this a lazy evaluated leaf



14
15
16
# File 'lib/karafka/core/configurable/leaf.rb', line 14

def lazy?
  lazy == true
end