Class: Corindon::DependencyInjection::Token::ValueToken
- Inherits:
-
InjectionToken
- Object
- InjectionToken
- Corindon::DependencyInjection::Token::ValueToken
- Defined in:
- lib/corindon/dependency_injection/token/value_token.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value:) ⇒ ValueToken
constructor
A new instance of ValueToken.
- #resolve ⇒ Object
Constructor Details
#initialize(value:) ⇒ ValueToken
Returns a new instance of ValueToken.
10 11 12 13 14 |
# File 'lib/corindon/dependency_injection/token/value_token.rb', line 10 def initialize(value:) super() @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
7 8 9 |
# File 'lib/corindon/dependency_injection/token/value_token.rb', line 7 def value @value end |
Instance Method Details
#resolve ⇒ Object
16 17 18 |
# File 'lib/corindon/dependency_injection/token/value_token.rb', line 16 def resolve(*) @value end |