Class: TwitterCldr::Resources::RegexpAstGenerator

Inherits:
Object
  • Object
show all
Defined in:
lib/twitter_cldr/resources/regexp_ast_generator.rb

Class Method Summary collapse

Class Method Details

.generate(regexp_str) ⇒ Object



14
15
16
17
# File 'lib/twitter_cldr/resources/regexp_ast_generator.rb', line 14

def generate(regexp_str)
  tree = Regexp::Parser.parse(regexp_str)
  walk(tree)
end