Class: Core::Computed::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/core/computed/value.rb

Overview

public

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Value

Returns a new instance of Value.



8
9
10
11
# File 'lib/core/computed/value.rb', line 8

def initialize(&block)
  @block = block
  @dependencies = build_dependencies(block)
end

Instance Attribute Details

#blockObject (readonly)

public


15
16
17
# File 'lib/core/computed/value.rb', line 15

def block
  @block
end

#dependenciesObject (readonly)

public


19
20
21
# File 'lib/core/computed/value.rb', line 19

def dependencies
  @dependencies
end