Skip to content

Commit

Permalink
Removing this commented code since the actual case is covered in the …
Browse files Browse the repository at this point in the history
…parent Type
  • Loading branch information
jwoertink committed Mar 23, 2024
1 parent 43a178d commit 993e805
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/avram/charms/enum_extensions.cr
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,6 @@ abstract struct Enum
end
end

# def parse(values : Array(String))
# results = values.map {|s| parse(s)}
# if results.all?(SuccessfulCast)
# parse(results.map(&.value.as(T)))
# else
# FailedCast.new
# end
# end

def parse(value : T)
SuccessfulCast.new(value)
end
Expand Down

0 comments on commit 993e805

Please sign in to comment.