File.open("c:/model.ecore").each { |line|
puts line if line =~ /name="(\w+)" eSuperTypes=".*\1.*"/
}
Run Ruby in the command line, and... it just worked!
Although it's not a representative Ruby program, the fact that it just worked did impress me and give me more motivation to learn this buzzword.
No comments:
Post a Comment