Class: Faml::Stats::Info

Inherits:
Struct
  • Object
show all
Defined in:
lib/faml/stats.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeInfo

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_typesObject

Returns the value of attribute ast_types

Returns:

  • (Object)

    the current value of ast_types



9
10
11
# File 'lib/faml/stats.rb', line 9

def ast_types
  @ast_types
end

#dynamic_attribute_countObject

Returns the value of attribute dynamic_attribute_count

Returns:

  • (Object)

    the current value of 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_countObject

Returns the value of attribute dynamic_attribute_with_data_count

Returns:

  • (Object)

    the current value of 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_countObject

Returns the value of attribute dynamic_attribute_with_newline_count

Returns:

  • (Object)

    the current value of 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_countObject

Returns the value of attribute empty_attribute_count

Returns:

  • (Object)

    the current value of empty_attribute_count



9
10
11
# File 'lib/faml/stats.rb', line 9

def empty_attribute_count
  @empty_attribute_count
end

#multi_attribute_countObject

Returns the value of attribute multi_attribute_count

Returns:

  • (Object)

    the current value of multi_attribute_count



9
10
11
# File 'lib/faml/stats.rb', line 9

def multi_attribute_count
  @multi_attribute_count
end

#object_reference_countObject

Returns the value of attribute object_reference_count

Returns:

  • (Object)

    the current value of object_reference_count



9
10
11
# File 'lib/faml/stats.rb', line 9

def object_reference_count
  @object_reference_count
end

#runtime_attribute_countObject

Returns the value of attribute runtime_attribute_count

Returns:

  • (Object)

    the current value of runtime_attribute_count



9
10
11
# File 'lib/faml/stats.rb', line 9

def runtime_attribute_count
  @runtime_attribute_count
end

#static_attribute_countObject

Returns the value of attribute static_attribute_count

Returns:

  • (Object)

    the current value of 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_countObject

Returns the value of attribute static_id_or_class_attribute_count

Returns:

  • (Object)

    the current value of 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