Parses self
destructively in order and returns self
containing the rest arguments left unparsed.
Parses self
destructively in permutation mode and returns self
containing the rest arguments left unparsed.
Substitution of getopts is possible as follows. Also see OptionParser#getopts
.
def getopts(*args) ($OPT = ARGV.getopts(*args)).each do |opt, val| eval "$OPT_#{opt.gsub(/[^A-Za-z0-9_]/, '_')} = val" end rescue OptionParser::ParseError end
Create a new Location
object
Create a new AliasGlobalVariableNode
node
Create a new ArrayPatternNode
node
Create a new BlockArgumentNode
node
Create a new BlockNode
node
Create a new CallOrWriteNode
node
Create a new CallTargetNode
node
Create a new CapturePatternNode
node
Create a new ClassVariableOperatorWriteNode
node
Create a new ClassVariableReadNode
node
Create a new ClassVariableTargetNode
node
Create a new ConstantOperatorWriteNode
node
Create a new ConstantPathOperatorWriteNode
node
Create a new ConstantPathTargetNode
node
Create a new ConstantTargetNode
node
Create a new FindPatternNode
node
Create a new FlipFlopNode
node
Create a new FloatNode
node
Create a new ForwardingParameterNode
node
Create a new ForwardingSuperNode
node
Create a new GlobalVariableAndWriteNode
node