module MIKU::StaticCode

Attributes

staticcode_file[RW]
staticcode_line[RW]

Public Class Methods

extended(obj) click to toggle source
# File core/miku/node.rb, line 29
def self.extended(obj)
  obj.staticcode_line = 1
  obj.staticcode_file = 'runtime-code' end

Public Instance Methods

staticcode_copy_info(src) click to toggle source
# File core/miku/node.rb, line 17
def staticcode_copy_info(src)
  if src.is_a? Array
  @staticcode_line = src[0]
  @staticcode_file = src[1]
  else
    @staticcode_line = src.staticcode_line
    @staticcode_file = src.staticcode_file end
  self end
staticcode_dump() click to toggle source
# File core/miku/node.rb, line 26
def staticcode_dump
  [@staticcode_file, @staticcode_line] end