Module: RainforestRubyRuntime::DSL

Defined in:
lib/rainforest_ruby_runtime/dsl.rb

Instance Method Summary collapse

Instance Method Details

#define_variable_scope(name, &block) ⇒ Object



7
8
9
10
# File 'lib/rainforest_ruby_runtime/dsl.rb', line 7

def define_variable_scope(name, &block)
  scope = Variables::Scope.new(name, &block)
  Variables.scope_registery.register(scope)
end

#test(id:, title:, &block) ⇒ Object



3
4
5
# File 'lib/rainforest_ruby_runtime/dsl.rb', line 3

def test(id: , title: , &block)
  RainforestRubyRuntime::Test.new(id: id, title: title, &block)
end