Module: Muwu::Helper::RegexpLib
- Defined in:
- lib/muwu/helper/regexp_lib.rb
Class Method Summary collapse
- .file_ext_md ⇒ Object
- .markdown_heading ⇒ Object
- .markdown_heading_plus_whitespace ⇒ Object
- .metadata_key_date_of_this_edition ⇒ Object
- .not_alphanumeric_underscore_or_single_dot ⇒ Object
- .outline_contents ⇒ Object
- .outline_metadata ⇒ Object
- .outline_navigator ⇒ Object
- .outline_subcontents ⇒ Object
- .outline_text ⇒ Object
- .outline_text_plus_whitespace ⇒ Object
- .outline_title ⇒ Object
- .path_two_or_more_dots ⇒ Object
Class Method Details
.file_ext_md ⇒ Object
9 10 11 |
# File 'lib/muwu/helper/regexp_lib.rb', line 9 def file_ext_md /.md\z/i end |
.markdown_heading ⇒ Object
14 15 16 |
# File 'lib/muwu/helper/regexp_lib.rb', line 14 def markdown_heading /\A#+/ end |
.markdown_heading_plus_whitespace ⇒ Object
19 20 21 |
# File 'lib/muwu/helper/regexp_lib.rb', line 19 def markdown_heading_plus_whitespace /\A#+\s*/ end |
.metadata_key_date_of_this_edition ⇒ Object
24 25 26 |
# File 'lib/muwu/helper/regexp_lib.rb', line 24 def /\Adate\s*of\s*this\s*edition/i end |
.not_alphanumeric_underscore_or_single_dot ⇒ Object
29 30 31 |
# File 'lib/muwu/helper/regexp_lib.rb', line 29 def not_alphanumeric_underscore_or_single_dot /[^a-zA-Z0-9_\.]/ end |
.outline_contents ⇒ Object
44 45 46 |
# File 'lib/muwu/helper/regexp_lib.rb', line 44 def outline_contents /\Acontents/i end |
.outline_metadata ⇒ Object
34 35 36 |
# File 'lib/muwu/helper/regexp_lib.rb', line 34 def /\Ametadata/i end |
.outline_navigator ⇒ Object
39 40 41 |
# File 'lib/muwu/helper/regexp_lib.rb', line 39 def outline_navigator /\Anavigator/i end |
.outline_subcontents ⇒ Object
49 50 51 |
# File 'lib/muwu/helper/regexp_lib.rb', line 49 def outline_subcontents /\Asubcontents/i end |
.outline_text ⇒ Object
54 55 56 |
# File 'lib/muwu/helper/regexp_lib.rb', line 54 def outline_text /\Atext/i end |
.outline_text_plus_whitespace ⇒ Object
59 60 61 |
# File 'lib/muwu/helper/regexp_lib.rb', line 59 def outline_text_plus_whitespace /\Atext\s+/i end |
.outline_title ⇒ Object
64 65 66 |
# File 'lib/muwu/helper/regexp_lib.rb', line 64 def outline_title /\Atitle/i end |
.path_two_or_more_dots ⇒ Object
69 70 71 |
# File 'lib/muwu/helper/regexp_lib.rb', line 69 def path_two_or_more_dots /\.{2,}/ end |