# $Id: module.rb,v 1.4 2003/12/30 06:11:02 yuya Exp $ module Foo def self.bar p(:ok) end end p(Foo) p(Foo.class) Foo.bar # NodeDump V0.1.7 # # NODE_BLOCK: # NODE_NEWLINE: [module.rb:3] # NODE_MODULE: module 8965 (Foo) # NODE_SCOPE: # NODE_NEWLINE: [module.rb:4] # NODE_DEFS: method 8977 (bar) # Receiver: # NODE_SELF: # NODE_SCOPE: # NODE_BLOCK: # NODE_ARGS: count = 0 # additional default values: # NODE_NEWLINE: [module.rb:5] # NODE_FCALL: to function: 6753 (p) # Parameters: # NODE_ARRAY: size = 1 # NODE_LIT: Symbol: 8985 (ok) # NODE_NEWLINE: [module.rb:9] # NODE_FCALL: to function: 6753 (p) # Parameters: # NODE_ARRAY: size = 1 # NODE_CONST: 8965 (Foo) # NODE_NEWLINE: [module.rb:10] # NODE_FCALL: to function: 6753 (p) # Parameters: # NODE_ARRAY: size = 1 # NODE_CALL: to method: 2937 (class) # Receiver: # NODE_CONST: 8965 (Foo) # NODE_NEWLINE: [module.rb:11] # NODE_CALL: to method: 8977 (bar) # Receiver: # NODE_CONST: 8965 (Foo)