Class: Comet::DSL::Source

Inherits:
Object
  • Object
show all
Defined in:
lib/comet/dsl/source.rb

Class Method Summary collapse

Class Method Details

.create(language:, **kwargs, &block) ⇒ Object



5
6
7
8
# File 'lib/comet/dsl/source.rb', line 5

def create(language:, **kwargs, &block)
  raise "unknown language #{language}" unless valid? language
  LANGUAGES[language].call(**kwargs, &block)
end