Method: TailwindTheme::Theme#key?

Defined in:
lib/tailwind_theme.rb

#key?(path) ⇒ Boolean

Returns if the path exists

Returns:

  • (Boolean)

    returns true if the path exists



154
155
156
157
# File 'lib/tailwind_theme.rb', line 154

def key?(path)
  path = normalize_path path
  !!lookup_path(path, raise: false)
end