Module: Muwu::Helper::RegexpLib
- Defined in:
- lib/muwu/helper/regexp_lib.rb
Class Method Summary collapse
- .file_ext_haml ⇒ Object
- .file_ext_md ⇒ Object
- .haml_heading ⇒ Object
- .haml_heading_plus_whitespace ⇒ 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_haml ⇒ Object
19 20 21 |
# File 'lib/muwu/helper/regexp_lib.rb', line 19 def file_ext_haml /.haml\z/i end |
.file_ext_md ⇒ Object
24 25 26 |
# File 'lib/muwu/helper/regexp_lib.rb', line 24 def file_ext_md /.md\z/i end |
.haml_heading ⇒ Object
29 30 31 |
# File 'lib/muwu/helper/regexp_lib.rb', line 29 def haml_heading /\A%h\d*/i end |
.haml_heading_plus_whitespace ⇒ Object
34 35 36 |
# File 'lib/muwu/helper/regexp_lib.rb', line 34 def haml_heading_plus_whitespace /\A%h\d*\s*/i end |
.markdown_heading ⇒ Object
39 40 41 |
# File 'lib/muwu/helper/regexp_lib.rb', line 39 def markdown_heading /\A#+/ end |
.markdown_heading_plus_whitespace ⇒ Object
44 45 46 |
# File 'lib/muwu/helper/regexp_lib.rb', line 44 def markdown_heading_plus_whitespace /\A#+\s*/ end |
.metadata_key_date_of_this_edition ⇒ Object
49 50 51 |
# File 'lib/muwu/helper/regexp_lib.rb', line 49 def /\Adate\s*of\s*this\s*edition/i end |
.not_alphanumeric_underscore_or_single_dot ⇒ Object
54 55 56 |
# File 'lib/muwu/helper/regexp_lib.rb', line 54 def not_alphanumeric_underscore_or_single_dot /[^a-zA-Z0-9_\.]/ end |
.outline_contents ⇒ Object
69 70 71 |
# File 'lib/muwu/helper/regexp_lib.rb', line 69 def outline_contents /\Acontents/i end |
.outline_metadata ⇒ Object
59 60 61 |
# File 'lib/muwu/helper/regexp_lib.rb', line 59 def /\Ametadata/i end |
.outline_navigator ⇒ Object
64 65 66 |
# File 'lib/muwu/helper/regexp_lib.rb', line 64 def outline_navigator /\Anavigator/i end |
.outline_subcontents ⇒ Object
74 75 76 |
# File 'lib/muwu/helper/regexp_lib.rb', line 74 def outline_subcontents /\Asubcontents/i end |
.outline_text ⇒ Object
79 80 81 |
# File 'lib/muwu/helper/regexp_lib.rb', line 79 def outline_text /\Atext/i end |
.outline_text_plus_whitespace ⇒ Object
84 85 86 |
# File 'lib/muwu/helper/regexp_lib.rb', line 84 def outline_text_plus_whitespace /\Atext\s+/i end |
.outline_title ⇒ Object
89 90 91 |
# File 'lib/muwu/helper/regexp_lib.rb', line 89 def outline_title /\Atitle/i end |
.path_two_or_more_dots ⇒ Object
94 95 96 |
# File 'lib/muwu/helper/regexp_lib.rb', line 94 def path_two_or_more_dots /\.{2,}/ end |