Sha256: 9b49e122828b315c6bc3cb9618f056e1807324e1197efd26235902aa4d7886d0
Contents?: true
Size: 543 Bytes
Versions: 69
Compression:
Stored size: 543 Bytes
Contents
module RubyToBlock module Block class Do < RubyStatement blocknize '^.*?\s*do\s*$', statement: true, priority: -1 def self.process_match_data(md, context) block = new(fields: { STATEMENT: md.string }) context.add_block(block) context.statement_stack.push([type, block]) true end def self.process_end(context) context.add_block(new(fields: { STATEMENT: 'end' })) super end def type 'ruby_statement' end end end end
Version data entries
69 entries across 69 versions & 1 rubygems