Runtime assertions for Ruby literal.fun
ruby
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

Delete enum_type.rb

-15
-15
lib/literal/enum_type.rb
··· 1 - # frozen_string_literal: true 2 - 3 - class Literal::EnumType 4 - def initialize(type) 5 - @type = type 6 - end 7 - 8 - def inspect 9 - "Literal::Enum(#{@type.inspect})" 10 - end 11 - 12 - def ===(value) 13 - Literal::Enum === value && value.type == @type 14 - end 15 - end