class SheepAst::FileInfo
Structure to hold file info in analyze.
@api private
Public Instance Methods
copy(other)
click to toggle source
# File lib/sheep_ast/messages.rb, line 207 def copy(other) @file = other.file.dup @tokenized = other.tokenized.dup @chunk = other.chunk.dup @line = other.line.dup @max_line = other.max_line.dup @index = other.index.dup @namespace_stack = other.namespace_stack.dup @ast_include = other.ast_include.dup @ast_exclude = other.ast_exclude.dup @raw_lines = other.raw_lines.dup @new_file_validation = other.new_file_validation # lprint "#{self.class.name} copy is called. #{inspect}" end
init()
click to toggle source
# File lib/sheep_ast/messages.rb, line 222 def init # lprint "#{self.class.name} init is called. #{inspect}" @file = nil @tokenized = nil @chunk = nil @line = 0 @max_line = 0 @index = 0 @namespace_stack = [] @ast_include = nil @ast_exclude = nil @raw_lines = nil @new_file_validation = true end
inspect()
click to toggle source
# File lib/sheep_ast/messages.rb, line 238 def inspect "custome inspect <#{self.class.name} object_id = #{object_id}, file = #{@file.inspect},"\ " chunk = #{@chunk.inspect},"" line = #{@line.inspect}, max_line = #{@max_line.inspect},"\ " index = #{@index.inspect}, namespace_stack = #{@namespace_stack.inspect},"\ " ast_include = #{@ast_include.inspect}, ast_exclude = #{@ast_exclude.inspect},"\ " new_file_validation = #{@new_file_validation.inspect}>" end