Class: Anyway::Config::NamedCallback

Inherits:
Object
  • Object
show all
Defined in:
lib/anyway/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ NamedCallback

Returns a new instance of NamedCallback.



74
75
76
# File 'lib/anyway/config.rb', line 74

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



72
73
74
# File 'lib/anyway/config.rb', line 72

def name
  @name
end

Instance Method Details

#apply_to(config) ⇒ Object



78
# File 'lib/anyway/config.rb', line 78

def apply_to(config) = config.send(name)