Class: ApiDiff::Enum

Inherits:
Type
  • Object
show all
Defined in:
lib/api_diff/enum.rb

Instance Attribute Summary collapse

Attributes inherited from Type

#fully_qualified_name, #functions, #name, #parents, #properties

Instance Method Summary collapse

Methods inherited from Type

#<=>, #declaration, #has_parents?, #initialize, #package, #to_s, type_name

Constructor Details

This class inherits a constructor from ApiDiff::Type

Instance Attribute Details

#casesObject

Returns the value of attribute cases.



3
4
5
# File 'lib/api_diff/enum.rb', line 3

def cases
  @cases
end

Instance Method Details

#sectionsObject



5
6
7
8
9
10
# File 'lib/api_diff/enum.rb', line 5

def sections
  [
    cases.sort.map { |c| "case #{c}" },
    *super
  ]
end