Class: Red::VariableNode::OtherVariable
- Inherits:
-
Red::VariableNode
- Object
- String
- Red::VariableNode
- Red::VariableNode::OtherVariable
- Defined in:
- lib/red/nodes/variable_nodes.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(variable_name_sexp, options) ⇒ OtherVariable
constructor
- :dvar, :foo
- :gvar, :foo
- :lvar, :foo
-
[:vcall, :foo].
Methods inherited from String
#%, #*, #+, #<<, #<=>, #==, #=~, #[], #[]=, #capitalize, #capitalize!, #casecmp, #center, #chomp, #chomp!, #chop, #chop!, #concat, #count, #crypt, #delete, #delete!, #downcase, #downcase!, #each, #each_byte, #each_line, #empty?, #eql?, #gsub, #gsub!, #hash, #hex, #include?, #index, #insert, #inspect, #intern, #length, #ljust, #lstrip, #lstrip!, #match, #next, #next!, #oct, #replace, #reverse, #reverse!, #rindex, #rjust, #rstrip, #rstrip!, #scan, #size, #slice, #slice!, #split, #squeeze, #strip, #strip!, #strip_scripts, #sub, #sub!, #succ, #succ!, #sum, #swapcase, #swapcase!, #to_f, #to_i, #to_s, #to_str, #to_sym, #tr, #tr!, #tr_s, #tr_s!, #upcase, #upcase!, #upto
Constructor Details
#initialize(variable_name_sexp, options) ⇒ OtherVariable
- :dvar, :foo
- :gvar, :foo
- :lvar, :foo
- :vcall, :foo
- :gvar, :foo
75 76 77 78 |
# File 'lib/red/nodes/variable_nodes.rb', line 75 def initialize(variable_name_sexp, ) variable_name = variable_name_sexp.red! self << "%s" % [variable_name] end |