Class: Faml::Stats::Info
- Inherits:
-
Struct
- Object
- Struct
- Faml::Stats::Info
- Defined in:
- lib/faml/stats.rb
Instance Attribute Summary collapse
-
#ast_types ⇒ Object
Returns the value of attribute ast_types.
-
#dynamic_attribute_count ⇒ Object
Returns the value of attribute dynamic_attribute_count.
-
#dynamic_attribute_with_data_count ⇒ Object
Returns the value of attribute dynamic_attribute_with_data_count.
-
#dynamic_attribute_with_newline_count ⇒ Object
Returns the value of attribute dynamic_attribute_with_newline_count.
-
#empty_attribute_count ⇒ Object
Returns the value of attribute empty_attribute_count.
-
#multi_attribute_count ⇒ Object
Returns the value of attribute multi_attribute_count.
-
#object_reference_count ⇒ Object
Returns the value of attribute object_reference_count.
-
#runtime_attribute_count ⇒ Object
Returns the value of attribute runtime_attribute_count.
-
#static_attribute_count ⇒ Object
Returns the value of attribute static_attribute_count.
-
#static_id_or_class_attribute_count ⇒ Object
Returns the value of attribute static_id_or_class_attribute_count.
Instance Method Summary collapse
-
#initialize ⇒ Info
constructor
A new instance of Info.
Constructor Details
#initialize ⇒ Info
Returns a new instance of Info.
21 22 23 24 25 26 27 |
# File 'lib/faml/stats.rb', line 21 def initialize(*) super self.ast_types ||= Hash.new { |h, k| h[k] = 0 } members.each do |k| self[k] ||= 0 end end |
Instance Attribute Details
#ast_types ⇒ Object
Returns the value of attribute ast_types
9 10 11 |
# File 'lib/faml/stats.rb', line 9 def ast_types @ast_types end |
#dynamic_attribute_count ⇒ Object
Returns the value of attribute dynamic_attribute_count
9 10 11 |
# File 'lib/faml/stats.rb', line 9 def dynamic_attribute_count @dynamic_attribute_count end |
#dynamic_attribute_with_data_count ⇒ Object
Returns the value of attribute dynamic_attribute_with_data_count
9 10 11 |
# File 'lib/faml/stats.rb', line 9 def dynamic_attribute_with_data_count @dynamic_attribute_with_data_count end |
#dynamic_attribute_with_newline_count ⇒ Object
Returns the value of attribute dynamic_attribute_with_newline_count
9 10 11 |
# File 'lib/faml/stats.rb', line 9 def dynamic_attribute_with_newline_count @dynamic_attribute_with_newline_count end |
#empty_attribute_count ⇒ Object
Returns the value of attribute empty_attribute_count
9 10 11 |
# File 'lib/faml/stats.rb', line 9 def empty_attribute_count @empty_attribute_count end |
#multi_attribute_count ⇒ Object
Returns the value of attribute multi_attribute_count
9 10 11 |
# File 'lib/faml/stats.rb', line 9 def multi_attribute_count @multi_attribute_count end |
#object_reference_count ⇒ Object
Returns the value of attribute object_reference_count
9 10 11 |
# File 'lib/faml/stats.rb', line 9 def object_reference_count @object_reference_count end |
#runtime_attribute_count ⇒ Object
Returns the value of attribute runtime_attribute_count
9 10 11 |
# File 'lib/faml/stats.rb', line 9 def runtime_attribute_count @runtime_attribute_count end |
#static_attribute_count ⇒ Object
Returns the value of attribute static_attribute_count
9 10 11 |
# File 'lib/faml/stats.rb', line 9 def static_attribute_count @static_attribute_count end |
#static_id_or_class_attribute_count ⇒ Object
Returns the value of attribute static_id_or_class_attribute_count
9 10 11 |
# File 'lib/faml/stats.rb', line 9 def static_id_or_class_attribute_count @static_id_or_class_attribute_count end |