Class: Phlex::Reactive::Defer::Segment

Inherits:
Data
  • Object
show all
Defined in:
lib/phlex/reactive/defer.rb

Overview

One recorded deferred segment. component is the built (but not yet rendered) reactive component; placeholder is nil (keep current content, mark pending), true (the component's deferred_placeholder / the built-in shell), a String, or a Phlex component; morph makes the ARRIVAL morph instead of replace (issue #28 semantics).

Instance Attribute Summary collapse

Instance Attribute Details

#componentObject (readonly)

Returns the value of attribute component

Returns:

  • (Object)

    the current value of component



28
29
30
# File 'lib/phlex/reactive/defer.rb', line 28

def component
  @component
end

#morphObject (readonly)

Returns the value of attribute morph

Returns:

  • (Object)

    the current value of morph



28
29
30
# File 'lib/phlex/reactive/defer.rb', line 28

def morph
  @morph
end

#placeholderObject (readonly)

Returns the value of attribute placeholder

Returns:

  • (Object)

    the current value of placeholder



28
29
30
# File 'lib/phlex/reactive/defer.rb', line 28

def placeholder
  @placeholder
end