In Files

Files

ParseClass

Public Class Methods

new(lexer,parent=nil) click to toggle source
# File lib/saikuro.rb, line 432
def initialize(lexer,parent=nil)
  super(lexer,parent)
  @type_name = "Class"
end

Public Instance Methods

compute_state(formater) click to toggle source
# File lib/saikuro.rb, line 442
def compute_state(formater)
  # Seperate the Module and Class Children out
  cnm_children, @children = @children.partition do |child|
    child.kind_of?(ParseClass)
  end

  formater.start_class_compute_state(@type_name,@name,self.calc_complexity,self.calc_lines)
  super(formater)
  formater.end_class_compute_state(@name)

  cnm_children.each do |child|
    child.name = @name + "::" + child.name
    child.compute_state(formater)
  end
end
do_constant_token(token) click to toggle source
# File lib/saikuro.rb, line 437
def do_constant_token(token)
  @name = token.name if @name.empty?
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.