Class: Seahorse::Client::Configuration::DynamicDefault Private

Inherits:
Object
  • Object
show all
Defined in:
lib/seahorse/client/configuration.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(block = nil) ⇒ DynamicDefault

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of DynamicDefault.



65
66
67
# File 'lib/seahorse/client/configuration.rb', line 65

def initialize(block = nil)
  @block = block
end

Instance Attribute Details

#blockObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



63
64
65
# File 'lib/seahorse/client/configuration.rb', line 63

def block
  @block
end

Instance Method Details

#call(*args) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



69
70
71
# File 'lib/seahorse/client/configuration.rb', line 69

def call(*args) 
  @block.call(*args)
end