Class: Karafka::Core::Configurable::Leaf
- Inherits:
-
Struct
- Object
- Struct
- Karafka::Core::Configurable::Leaf
- Defined in:
- lib/karafka/core/configurable/leaf.rb
Overview
Single end config value representation
Instance Attribute Summary collapse
-
#compiled ⇒ Object
Returns the value of attribute compiled.
-
#constructor ⇒ Object
Returns the value of attribute constructor.
-
#default ⇒ Object
Returns the value of attribute default.
-
#lazy ⇒ Object
Returns the value of attribute lazy.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#compiled? ⇒ Boolean
True if already compiled.
-
#lazy? ⇒ Boolean
Is this a lazy evaluated leaf.
Instance Attribute Details
#compiled ⇒ Object
Returns the value of attribute compiled
7 8 9 |
# File 'lib/karafka/core/configurable/leaf.rb', line 7 def compiled @compiled end |
#constructor ⇒ Object
Returns the value of attribute constructor
7 8 9 |
# File 'lib/karafka/core/configurable/leaf.rb', line 7 def constructor @constructor end |
#default ⇒ Object
Returns the value of attribute default
7 8 9 |
# File 'lib/karafka/core/configurable/leaf.rb', line 7 def default @default end |
#lazy ⇒ Object
Returns the value of attribute lazy
7 8 9 |
# File 'lib/karafka/core/configurable/leaf.rb', line 7 def lazy @lazy end |
#name ⇒ Object
Returns the value of attribute 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.
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.
14 15 16 |
# File 'lib/karafka/core/configurable/leaf.rb', line 14 def lazy? lazy == true end |