class SlimLint::CaptureMap

Holds the list of captures, providing a convenient interface for accessing the values and unwrapping them on your behalf.

Public Instance Methods

[](capture_name) click to toggle source

Returns the captured value with the specified name.

@param capture_name [Symbol] @return [Object]

Calls superclass method
# File lib/slim_lint/capture_map.rb, line 11
def [](capture_name)
  if key?(capture_name)
    super.value
  else
    raise ArgumentError, "Capture #{capture_name.inspect} does not exist!"
  end
end