Class: Capistrano::DataPlaneApi::Type

Inherits:
Shale::Mapper
  • Object
show all
Includes:
Diggable, Equatable
Defined in:
lib/capistrano/data_plane_api/type.rb

Instance Method Summary collapse

Methods included from Equatable

#eql?

Methods included from Diggable

#dig

Instance Method Details

#[](key) ⇒ Object?

Parameters:

  • key (Symbol, String)

Returns:

  • (Object, nil)


18
19
20
# File 'lib/capistrano/data_plane_api/type.rb', line 18

def [](key)
  public_send(key) if respond_to?(key)
end

#[]=(key, val) ⇒ Object

Parameters:

  • key (Symbol, String)
  • val (Object)


24
25
26
# File 'lib/capistrano/data_plane_api/type.rb', line 24

def []=(key, val)
  public_send(:"#{key}=", val)
end