Class: ApiDiff::Enum
Instance Attribute Summary collapse
-
#cases ⇒ Object
Returns the value of attribute cases.
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
#cases ⇒ Object
Returns the value of attribute cases.
3 4 5 |
# File 'lib/api_diff/enum.rb', line 3 def cases @cases end |
Instance Method Details
#sections ⇒ Object
5 6 7 8 9 10 |
# File 'lib/api_diff/enum.rb', line 5 def sections [ cases.sort.map { |c| "case #{c}" }, *super ] end |