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

#initialize ⇒ Info

Returns a new instance of Info.



17
18
19
20
21
22
23
# File 'lib/faml/stats.rb', line 17

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

Returns:

  • (Object) —

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

Returns:

  • (Object) —

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

Returns:

  • (Object) —

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

Returns:

  • (Object) —

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

Returns:

  • (Object) —

    the current value of empty_attribute_count



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

def empty_attribute_count
  @empty_attribute_count
end

#ruby_attribute_count ⇒ Object

Returns the value of attribute ruby_attribute_count

Returns:

  • (Object) —

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

Returns:

  • (Object) —

    the current value of static_attribute_count



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

def static_attribute_count
  @static_attribute_count
end