lib/regextest/front.rb in regextest-0.1.5 vs lib/regextest/front.rb in regextest-0.1.6

- old
+ new

@@ -55,9 +55,14 @@ # Return JSON string def get_json_string JSON.pretty_generate(get_object, @json_option) end + # Return JSON of regex + def get_json_regex + JSON.pretty_generate(get_object["regex"], @json_option) + end + end # Test suite (execute when this file is specified in command line) if __FILE__ == $0 end