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.
-
#ruby_attribute_count ⇒ Object
Returns the value of attribute ruby_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.
19 20 21 22 23 24 25 |
# File 'lib/faml/stats.rb', line 19 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
8 9 10 |
# File 'lib/faml/stats.rb', line 8 def ast_types @ast_types end |
#dynamic_attribute_count ⇒ Object
Returns the value of attribute dynamic_attribute_count
8 9 10 |
# File 'lib/faml/stats.rb', line 8 def dynamic_attribute_count @dynamic_attribute_count end |
#dynamic_attribute_with_data_count ⇒ Object
Returns the value of attribute dynamic_attribute_with_data_count
8 9 10 |
# File 'lib/faml/stats.rb', line 8 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
8 9 10 |
# File 'lib/faml/stats.rb', line 8 def dynamic_attribute_with_newline_count @dynamic_attribute_with_newline_count end |
#empty_attribute_count ⇒ Object
Returns the value of attribute empty_attribute_count
8 9 10 |
# File 'lib/faml/stats.rb', line 8 def empty_attribute_count @empty_attribute_count end |
#multi_attribute_count ⇒ Object
Returns the value of attribute multi_attribute_count
8 9 10 |
# File 'lib/faml/stats.rb', line 8 def multi_attribute_count @multi_attribute_count end |
#ruby_attribute_count ⇒ Object
Returns the value of attribute ruby_attribute_count
8 9 10 |
# File 'lib/faml/stats.rb', line 8 def ruby_attribute_count @ruby_attribute_count end |
#static_attribute_count ⇒ Object
Returns the value of attribute static_attribute_count
8 9 10 |
# File 'lib/faml/stats.rb', line 8 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
8 9 10 |
# File 'lib/faml/stats.rb', line 8 def static_id_or_class_attribute_count @static_id_or_class_attribute_count end |