Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/maruku/input_textile2/t2_parser.rb

Direct Known Subclasses

MaRuKu::MDLine

Constant Summary collapse

Textile2_EmptyLine =
/^\s*$/
Textile2_Signature =
/^(\S+\.?)\.\s(.*)/

Instance Method Summary collapse

Instance Method Details

#t2_contains_signature?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


5
6
7
# File 'lib/maruku/input_textile2/t2_parser.rb', line 5

def t2_empty?
	self =~ Textile2_EmptyLine
end

#t2_get_signatureObject

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