Class: Vident2::Internals::Declaration Private
- Inherits:
-
Data
- Object
- Data
- Vident2::Internals::Declaration
- Defined in:
- lib/vident2/internals/declaration.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
One unresolved DSL entry. ‘args` is the raw argument tuple passed to the DSL primitive; the Resolver parses it into a Stimulus value object at instance init. `when_proc` (optional) is a `-> { … }` filter evaluated in the component binding; `meta` is a free-form Hash for options like `from_prop: true` the parser needs to see.
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
-
#when_proc ⇒ Object
readonly
Returns the value of attribute when_proc.
Class Method Summary collapse
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args
11 12 13 |
# File 'lib/vident2/internals/declaration.rb', line 11 def args @args end |
#meta ⇒ Object (readonly)
Returns the value of attribute meta
11 12 13 |
# File 'lib/vident2/internals/declaration.rb', line 11 def @meta end |
#when_proc ⇒ Object (readonly)
Returns the value of attribute when_proc
11 12 13 |
# File 'lib/vident2/internals/declaration.rb', line 11 def when_proc @when_proc end |
Class Method Details
.of(*args, when_proc: nil, **meta) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 |
# File 'lib/vident2/internals/declaration.rb', line 12 def self.of(*args, when_proc: nil, **) new(args: args.freeze, when_proc: when_proc, meta: .freeze) end |