Module: TagParser
- Included in:
- CooklangRb::Tag
- Defined in:
- lib/cooklang_rb/tag_parser.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Constant Summary collapse
- NAME =
"(?<name>[^\s]+)".freeze
- MULTI_NAME =
"(?<name>[^@#~{]+)".freeze
- QUANTITY =
"(?<quantity>[^%}]*)?".freeze
- UNITS =
"(?<units>[^}]+)?".freeze
- TIMER_TAG =
"~".freeze
- INGREDIENT_TAG =
"@".freeze
- COOKWARE_TAG =
"#".freeze
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
10 11 12 13 |
# File 'lib/cooklang_rb/tag_parser.rb', line 10 def self.included(base) base.include InstanceMethods base.extend ClassMethods end |