class InitialCaseError
Public Class Methods
new(type, initial_case, ast)
click to toggle source
Calls superclass method
CompilerError::new
# File lib/compiler_error.rb, line 14 def initialize type, initial_case, ast super ast.position @type = type @initial_case = initial_case @ast = ast end
Public Instance Methods
info()
click to toggle source
# File lib/compiler_error.rb, line 21 def info if @type == 'node_nick' then return "'#{@ast.nickname}' : nickname of nodes should be #{@initial_case} case" else return "'#{@ast.name}' : name of #{@type}s should be #{@initial_case} case" end end