Module: Antlers::Props

Includes:
Variables
Included in:
ForNode, PropNode, SlotNode
Defined in:
lib/modules/props.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Variables

#evaluate, #fallback

Methods included from Queries

user_defined_string?, wrapped_in?

Instance Attribute Details

#propsObject

Returns the value of attribute props.



10
11
12
# File 'lib/modules/props.rb', line 10

def props
  @props
end

Instance Method Details

#initialize(name:, props: {}) ⇒ Object



12
13
14
15
16
# File 'lib/modules/props.rb', line 12

def initialize(name:, props: {}, **)
  super(name:, **)

  @props = props
end