Skip to content

Commit

Permalink
use to_sym instead of to_sym()
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkdoor committed Aug 13, 2012
1 parent cb220ed commit 35ffc91
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/compiler/ast/identifier.fy
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ class Fancy AST {
}

def name {
@string to_sym()
@string to_sym
}

def method_name: receiver ruby_send: ruby (false) {
if: (ruby || @ruby_ident) then: {
@string to_sym()
@string to_sym
} else: {
if: (@string =~ /:$/) then: {
@string to_sym()
@string to_sym
} else: {
":" + @string . to_sym()
":" + @string . to_sym
}
}
}
Expand Down Expand Up @@ -107,7 +107,7 @@ class Fancy AST {
parent = Constant new: @line string: (names shift())
scoped = nil
names each() |name| {
scoped = Rubinius AST ScopedConstant new(@line, parent, name to_sym())
scoped = Rubinius AST ScopedConstant new(@line, parent, name to_sym)
parent = scoped
}
scoped
Expand Down

0 comments on commit 35ffc91

Please sign in to comment.