class YARD::Handlers::Ruby::Legacy::ClassHandler
def extract_parameters(superstring)
-
(Array
- a list of member names)
Parameters:
-
superstring
(String
) -- the string declaring the superclass
def extract_parameters(superstring) paramstring = superstring.match(/\A(O?Struct)\.new\((.*?)\)/)[2] paramstring.split(",").select {|x| x.strip[0, 1] == ":" }.map {|x| x.strip[1..-1] } # the 1..-1 chops the leading : end