Class: Parade::Metadata::HTMLId
- Inherits:
-
Object
- Object
- Parade::Metadata::HTMLId
- Defined in:
- lib/parade/metadata/html_id.rb
Overview
Specify the HTML id of the slide through this metadata parser. This allows the id to be defined like one would reference with jQuery.
Instance Method Summary collapse
Instance Method Details
#apply(term, hash) ⇒ Object
21 22 23 24 |
# File 'lib/parade/metadata/html_id.rb', line 21 def apply(term,hash) hash[:id] = parse(term) hash end |
#match?(term) ⇒ Boolean
17 18 19 |
# File 'lib/parade/metadata/html_id.rb', line 17 def match?(term) term =~ /#.+/ end |