Class: Contracts::Builtin::EnumInspector
- Inherits:
-
Object
- Object
- Contracts::Builtin::EnumInspector
- Includes:
- Formatters
- Defined in:
- lib/contracts/builtin_contracts.rb
Class Method Summary collapse
Class Method Details
.inspect(vals, last_join_word) ⇒ Object
92 93 94 95 96 |
# File 'lib/contracts/builtin_contracts.rb', line 92 def self.inspect(vals, last_join_word) vals[0, vals.size-1].map do |x| InspectWrapper.create(x) end.join(", ") + " #{last_join_word} " + InspectWrapper.create(vals[-1]).to_s end |