rubyx/lib/parser/module_def.rb
2014-05-29 15:57:33 +03:00

10 lines
234 B
Ruby

module Parser
module ModuleDef
include Parslet
rule(:module_def) do
keyword_module >> name >> eol >>
( (keyword_end.absent? >> root).repeat(1)).as(:module_expressions) >> keyword_end >> newline
end
end
end