Class: Haml2Erb::Tokens::Indent
Instance Attribute Summary
Attributes inherited from Token
Class Method Summary collapse
Methods inherited from Token
Constructor Details
This class inherits a constructor from Haml2Erb::Tokens::Token
Class Method Details
.match(text) ⇒ Object
21 22 23 24 |
# File 'lib/haml2erb/tokens.rb', line 21 def self.match(text) match_data = @regex.match(text) match_data ? self.new(match_data.to_s, :indent => (match_data.to_s.size / 2)) : nil end |