Skip to content

Commit

Permalink
chore: push up feeling signature files
Browse files Browse the repository at this point in the history
  • Loading branch information
benzend committed Oct 11, 2024
1 parent 4be77cb commit b8ee08c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions sig/glare/ux_metrics/ux_metrics.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@ module Glare
end
end

module Feeling
class Data
CHOICE_KEYS: Array[String]
attr_reader choices: Hash[::Symbol | ::String, ::String | ::Float | ::Integer]

def initialize: (choices: Hash[::Symbol | ::String, ::String | ::Float | ::Integer]) -> void

def valid?: -> bool

def parse: -> Result

class InvalidDataError < Error
def correct_data: -> String
end
end
end


class Result
attr_reader result: Float
Expand Down

0 comments on commit b8ee08c

Please sign in to comment.