Class: InertiaRails::MergeProp

Inherits:
BaseProp
  • Object
show all
Includes:
PropMergeable, PropOnceable
Defined in:
lib/inertia_rails/merge_prop.rb

Instance Attribute Summary

Attributes included from PropOnceable

#once_expires_in, #once_key

Attributes included from PropMergeable

#appends_at_paths, #match_on, #prepends_at_paths

Instance Method Summary collapse

Methods included from PropOnceable

#expires_at, #fresh?, #once?

Methods included from PropMergeable

#appends_at_root?, #deep_merge?, #merge?, #merges_at_root?, #prepends_at_root?

Methods inherited from BaseProp

#call

Constructor Details

#initialize(**_props, &block) ⇒ MergeProp

Returns a new instance of MergeProp.



8
9
10
11
# File 'lib/inertia_rails/merge_prop.rb', line 8

def initialize(**_props, &block)
  super(&block)
  @merge = true
end