Class: Falkor::Yard::Parser::GlobalState
- Inherits:
-
Object
- Object
- Falkor::Yard::Parser::GlobalState
- Defined in:
- lib/falkor/yard/parser/global_state.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#cruby_namespaces ⇒ Object
Returns the value of attribute cruby_namespaces.
-
#cruby_override_comments ⇒ Object
Returns the value of attribute cruby_override_comments.
-
#cruby_processed_files ⇒ Object
Returns the value of attribute cruby_processed_files.
-
#cruby_symbols ⇒ Object
Returns the value of attribute cruby_symbols.
-
#method_count ⇒ Object
Returns the value of attribute method_count.
-
#ordered_parser ⇒ Object
Returns the value of attribute ordered_parser.
-
#total_processed ⇒ Object
Returns the value of attribute total_processed.
Instance Method Summary collapse
-
#initialize(ordered_parser, total_processed) ⇒ GlobalState
constructor
A new instance of GlobalState.
- #processed(file_name) ⇒ Object
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
#block ⇒ Object
Returns the value of attribute block.
7 8 9 |
# File 'lib/falkor/yard/parser/global_state.rb', line 7 def block @block end |
#cruby_namespaces ⇒ Object
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_comments ⇒ Object
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_files ⇒ Object
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_symbols ⇒ Object
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_count ⇒ Object
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_parser ⇒ Object
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_processed ⇒ Object
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 |