Class: Extension::Features::Runtimes::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/project_types/extension/features/runtimes/base.rb

Direct Known Subclasses

Admin, CheckoutPostPurchase, CheckoutUiExtension

Instance Method Summary collapse

Instance Method Details

#active_runtime?(cli_package, identifier) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/project_types/extension/features/runtimes/base.rb', line 13

def active_runtime?(cli_package, identifier)
  raise NotImplementedError
end

#available_flagsObject



5
6
7
# File 'lib/project_types/extension/features/runtimes/base.rb', line 5

def available_flags
  []
end

#supports?(flag) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/project_types/extension/features/runtimes/base.rb', line 9

def supports?(flag)
  available_flags.include?(flag)
end