lib/melbourne/ast/variables.rb in melbourne-1.0.0 vs lib/melbourne/ast/variables.rb in melbourne-1.0.1
- old
+ new
@@ -14,11 +14,11 @@
# The kind of back reference
#
attr_accessor :kind
- def initialize(line, ref) #:nodoc:
+ def initialize(line, ref)
@line = line
@kind = ref
end
end
@@ -31,29 +31,29 @@
# The number of the match that is referenced
#
attr_accessor :which
- def initialize(line, ref) #:nodoc:
+ def initialize(line, ref)
@line = line
@which = ref
end
end
- class VariableAccess < Node #:nodoc:
+ class VariableAccess < Node
attr_accessor :name
def initialize(line, name)
@line = line
@name = name
end
end
- class VariableAssignment < Node #:nodoc:
+ class VariableAssignment < Node
attr_accessor :name, :value
def initialize(line, name, value)
@line = line
@@ -77,11 +77,11 @@
#
class ClassVariableAssignment < VariableAssignment
end
- class CVarDeclare < ClassVariableAssignment #:nodoc:
+ class CVarDeclare < ClassVariableAssignment
end
# Access of a global variable as in:
#
@@ -97,48 +97,48 @@
#
class GlobalVariableAssignment < VariableAssignment
end
- # Assignment to a splat (<tt>*some</tt>) as in:
+ # Assignment to a splat (+*some+) as in:
#
# *c = *[1, 2]
#
class SplatAssignment < Node
# The value being assigned to the splat
#
attr_accessor :value
- def initialize(line, value) #:nodoc:
+ def initialize(line, value)
@line = line
@value = value
end
end
- class SplatArray < SplatAssignment #:nodoc:
+ class SplatArray < SplatAssignment
def initialize(line, value, size)
@line = line
@value = value
@size = size
end
end
- class SplatWrapped < SplatAssignment #:nodoc:
+ class SplatWrapped < SplatAssignment
end
# An empty splat as in:
#
# * = 1, 2
#
class EmptySplat < Node
- def initialize(line, size) #:nodoc:
+ def initialize(line, size)
@line = line
@size = size
end
end
@@ -165,11 +165,11 @@
#
class LocalVariableAccess < VariableAccess
include LocalVariable
- def initialize(line, name) #:nodoc:
+ def initialize(line, name)
@line = line
@name = name
@variable = nil
end
@@ -181,11 +181,11 @@
#
class LocalVariableAssignment < VariableAssignment
include LocalVariable
- def initialize(line, name, value) #:nodoc:
+ def initialize(line, name, value)
@line = line
@name = name
@value = value
@variable = nil
end
@@ -205,15 +205,15 @@
# The right side of the assignment
#
attr_accessor :right
# TODO: document!
- attr_accessor :splat #:nodoc:
+ attr_accessor :splat
# TODO: document!
- attr_accessor :block #:nodoc:
+ attr_accessor :block
- def initialize(line, left, right, splat) #:nodoc:
+ def initialize(line, left, right, splat)
@line = line
@left = left
@right = right
@splat = nil
@block = nil # support for |&b|