Class: Falkor::Yard::Parser::GlobalState

Inherits:
Object
  • Object
show all
Defined in:
lib/falkor/yard/parser/global_state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ordered_parser, total_processed) ⇒ GlobalState

Returns a new instance of GlobalState.



11
12
13
14
# File 'lib/falkor/yard/parser/global_state.rb', line 11

def initialize(ordered_parser, total_processed)
  @ordered_parser = ordered_parser
  @total_processed = total_processed
end

Instance Attribute Details

#blockObject

Returns the value of attribute block.



7
8
9
# File 'lib/falkor/yard/parser/global_state.rb', line 7

def block
  @block
end

#cruby_namespacesObject

Returns the value of attribute cruby_namespaces.



7
8
9
# File 'lib/falkor/yard/parser/global_state.rb', line 7

def cruby_namespaces
  @cruby_namespaces
end

#cruby_override_commentsObject

Returns the value of attribute cruby_override_comments.



7
8
9
# File 'lib/falkor/yard/parser/global_state.rb', line 7

def cruby_override_comments
  @cruby_override_comments
end

#cruby_processed_filesObject

Returns the value of attribute cruby_processed_files.



7
8
9
# File 'lib/falkor/yard/parser/global_state.rb', line 7

def cruby_processed_files
  @cruby_processed_files
end

#cruby_symbolsObject

Returns the value of attribute cruby_symbols.



7
8
9
# File 'lib/falkor/yard/parser/global_state.rb', line 7

def cruby_symbols
  @cruby_symbols
end

#method_countObject

Returns the value of attribute method_count.



7
8
9
# File 'lib/falkor/yard/parser/global_state.rb', line 7

def method_count
  @method_count
end

#ordered_parserObject

Returns the value of attribute ordered_parser.



7
8
9
# File 'lib/falkor/yard/parser/global_state.rb', line 7

def ordered_parser
  @ordered_parser
end

#total_processedObject

Returns the value of attribute total_processed.



7
8
9
# File 'lib/falkor/yard/parser/global_state.rb', line 7

def total_processed
  @total_processed
end

Instance Method Details

#processed(file_name) ⇒ Object



16
17
18
19
20
# File 'lib/falkor/yard/parser/global_state.rb', line 16

def processed(file_name)
  return if block.nil?

  block.call(1, "Parsed #{file_name}")
end