Class: UltimateLyrics::Provider::ExcludeItem
- Defined in:
- lib/ultimate_lyrics/provider/exclude_item.rb
Constant Summary
Constants inherited from Item
Item::METHODS_ATTRIBUTES, Item::TAG_NAME_PARSER
Instance Method Summary collapse
Methods inherited from Item
#apply, #delimiters?, #tag_name, #to_s
Instance Method Details
#apply_from_delimiters(source) ⇒ Object
8 9 10 |
# File 'lib/ultimate_lyrics/provider/exclude_item.rb', line 8 def apply_from_delimiters(source) source.delimited_without_outer(begin_with, end_with) end |
#apply_from_tag(source) ⇒ Object
12 13 14 |
# File 'lib/ultimate_lyrics/provider/exclude_item.rb', line 12 def apply_from_tag(source) source.delimited_without_outer(tag, "</#{tag_name}>") end |