Class: InertiaRails::DeferProp
- Inherits:
-
IgnoreOnFirstLoadProp
- Object
- BaseProp
- IgnoreOnFirstLoadProp
- InertiaRails::DeferProp
- Includes:
- PropMergeable
- Defined in:
- lib/inertia_rails/defer_prop.rb
Constant Summary collapse
- DEFAULT_GROUP =
'default'
Instance Attribute Summary collapse
-
#group ⇒ Object
readonly
Returns the value of attribute group.
Attributes included from PropMergeable
#appends_at_paths, #match_on, #prepends_at_paths
Instance Method Summary collapse
-
#initialize(**props, &block) ⇒ DeferProp
constructor
A new instance of DeferProp.
Methods included from PropMergeable
#appends_at_root?, #deep_merge?, #merge?, #merges_at_root?, #prepends_at_root?
Methods inherited from BaseProp
Constructor Details
#initialize(**props, &block) ⇒ DeferProp
Returns a new instance of DeferProp.
11 12 13 14 15 |
# File 'lib/inertia_rails/defer_prop.rb', line 11 def initialize(**props, &block) super(&block) @group = props[:group] || DEFAULT_GROUP end |
Instance Attribute Details
#group ⇒ Object (readonly)
Returns the value of attribute group.
9 10 11 |
# File 'lib/inertia_rails/defer_prop.rb', line 9 def group @group end |