Module: RoleBlockHaml::HamlExtension::InstanceMethods
- Defined in:
- lib/role_block_haml/engine.rb
Defined Under Namespace
Classes: FakeLine
Instance Method Summary collapse
Instance Method Details
#parse_tag_with_feature(line) ⇒ Object
73 74 75 |
# File 'lib/role_block_haml/engine.rb', line 73 def parse_tag_with_feature(line) self.send(:parse_tag_without_feature, FakeLine.new(line.scan(/%([-:\w]+)([-:\w\.\#\@]*)(.*)/))) end |
#process_line_with_feature(text, index) ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/role_block_haml/engine.rb', line 51 def process_line_with_feature(text, index) if text[0] == '@' @index = index + 1 if text[1] == '@' @index = index + 1 end push div(text) else self.send(:process_line_without_feature, text, index) end end |