Class: CooklangRb::Tag

Inherits:
Object
  • Object
show all
Includes:
QuantityResolver, Steppable, TagParser
Defined in:
lib/cooklang_rb/tag.rb

Direct Known Subclasses

Cookware, Ingredient, Timer

Constant Summary

Constants included from TagParser

TagParser::COOKWARE_TAG, TagParser::INGREDIENT_TAG, TagParser::MULTI_NAME, TagParser::NAME, TagParser::QUANTITY, TagParser::TIMER_TAG, TagParser::UNITS

Instance Method Summary collapse

Methods included from QuantityResolver

#resolve_quantity

Methods included from Steppable

included

Methods included from TagParser

included

Instance Method Details

#clean_name(name) ⇒ Object



11
12
13
# File 'lib/cooklang_rb/tag.rb', line 11

def clean_name(name)
  name.delete_prefix(tag).chomp
end