Module: TyranoDsl::ParsingWords::DeclareLabel

Includes:
ParsingWordsModule
Defined in:
lib/tyrano_dsl/parsing_words/declare_label.rb

Instance Method Summary collapse

Instance Method Details

#declare_label(label_name) ⇒ void

This method returns an undefined value.

Parameters:

  • label_name (String)

Raises:



12
13
14
15
16
17
18
# File 'lib/tyrano_dsl/parsing_words/declare_label.rb', line 12

def declare_label(label_name)
  add_parsed_word(
      TyranoDsl::Vocabulary::DECLARE_LABEL,
      label_name: label_name
  )
  context.world.label_value(label_name)
end