C
cypher.dp
Hello everybody !
Somebody knows the best way or even a tool to split ruby code into its
different constructs ?
For example:
class Foo
def initialize
@x = "y"
end
def Bar(*args)
if args[0]
puts "Bar" + args[0]
else
puts @x
end
end
end
should be split into an Array
["class Foo\n", "def initialize\n\t@x="y"\nend\n", "def Bar(*args)\n",
"if args[0].........
Thanks a lot !
Domenico
Somebody knows the best way or even a tool to split ruby code into its
different constructs ?
For example:
class Foo
def initialize
@x = "y"
end
def Bar(*args)
if args[0]
puts "Bar" + args[0]
else
puts @x
end
end
end
should be split into an Array
["class Foo\n", "def initialize\n\t@x="y"\nend\n", "def Bar(*args)\n",
"if args[0].........
Thanks a lot !
Domenico