class NScript::AccessorNode
Attributes
soak[R]
Public Class Methods
new(name, tag=nil)
click to toggle source
# File lib/nscript/parser/nodes.rb, line 346 def initialize(name, tag=nil) @name = name @prototype = tag == :prototype @soak = tag == :soak end
Public Instance Methods
compile_node(o)
click to toggle source
# File lib/nscript/parser/nodes.rb, line 352 def compile_node(o) proto = @prototype ? "prototype." : '' write(".#{proto}#{@name}") end