Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/maruku/input_textile2/t2_parser.rb
Direct Known Subclasses
Constant Summary collapse
- Textile2_EmptyLine =
/^\s*$/
- Textile2_Signature =
/^(\S+\.?)\.\s(.*)/
Instance Method Summary collapse
- #t2_contains_signature? ⇒ Boolean
- #t2_empty? ⇒ Boolean
-
#t2_get_signature ⇒ Object
sig, rest = t2_get_signature.
Instance Method Details
#t2_contains_signature? ⇒ Boolean
9 10 11 |
# File 'lib/maruku/input_textile2/t2_parser.rb', line 9 def t2_contains_signature? self =~ Textile2_Signature end |
#t2_empty? ⇒ Boolean
5 6 7 |
# File 'lib/maruku/input_textile2/t2_parser.rb', line 5 def t2_empty? self =~ Textile2_EmptyLine end |
#t2_get_signature ⇒ Object
sig, rest = t2_get_signature
14 15 16 17 |
# File 'lib/maruku/input_textile2/t2_parser.rb', line 14 def t2_get_signature self =~ Textile2_Signature return Textile2Signature.new($1), $2 end |