Class: Vident::Internals::Declaration
- Inherits:
-
Data
- Object
- Data
- Vident::Internals::Declaration
- Defined in:
- lib/vident/internals/declaration.rb
Overview
One unresolved DSL entry; the Resolver parses it into typed Stimulus value objects at instance init time.
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
7 8 9 |
# File 'lib/vident/internals/declaration.rb', line 7 def args @args end |
#meta ⇒ Object (readonly)
Returns the value of attribute meta
7 8 9 |
# File 'lib/vident/internals/declaration.rb', line 7 def @meta end |
#when_proc ⇒ Object (readonly)
Returns the value of attribute when_proc
7 8 9 |
# File 'lib/vident/internals/declaration.rb', line 7 def when_proc @when_proc end |
Class Method Details
.of(*args, when_proc: nil, **meta) ⇒ Object
8 9 10 |
# File 'lib/vident/internals/declaration.rb', line 8 def self.of(*args, when_proc: nil, **) new(args: args.freeze, when_proc: when_proc, meta: .freeze) end |