Class: Low::Events::RenderEvent

Inherits:
Data
  • Object
show all
Defined in:
lib/events/render_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action: :render, props: {}) ⇒ RenderEvent

TODO: Duplicate props when used in a parallelized situation (antlers: “<{ :parallelize }>”)



7
8
9
# File 'lib/events/render_event.rb', line 7

def initialize(action: :render, props: {})
  super
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



5
6
7
# File 'lib/events/render_event.rb', line 5

def action
  @action
end

#propsObject (readonly)

Returns the value of attribute props

Returns:

  • (Object)

    the current value of props



5
6
7
# File 'lib/events/render_event.rb', line 5

def props
  @props
end