Class: Anyway::Config::NamedCallback
- Inherits:
-
Object
- Object
- Anyway::Config::NamedCallback
- Defined in:
- lib/anyway/config.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #apply_to(config) ⇒ Object
-
#initialize(name) ⇒ NamedCallback
constructor
A new instance of NamedCallback.
Constructor Details
#initialize(name) ⇒ NamedCallback
Returns a new instance of NamedCallback.
72 73 74 |
# File 'lib/anyway/config.rb', line 72 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
70 71 72 |
# File 'lib/anyway/config.rb', line 70 def name @name end |
Instance Method Details
#apply_to(config) ⇒ Object
76 |
# File 'lib/anyway/config.rb', line 76 def apply_to(config) = config.send(name) |