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.
71 72 73 |
# File 'lib/anyway/config.rb', line 71 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
69 70 71 |
# File 'lib/anyway/config.rb', line 69 def name @name end |
Instance Method Details
#apply_to(config) ⇒ Object
75 |
# File 'lib/anyway/config.rb', line 75 def apply_to(config) = config.send(name) |