Created
November 11, 2010 22:43
-
-
Save goyox86/673363 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ArrayLiteral : Rubinius AST ArrayLiteral { | |
def initialize: @array line: line { | |
@array nil? if_true: { @array = [] } | |
initialize(line, @array) | |
} | |
def bytecode: g { bytecode(g) } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As you said, it'd be cool to have line as first line argument, so the method should read
def initialize: line array: @array ([]) {
initialize(line, @array)
}