|
| 1 | +# Generated from src/application.rb with RBS::Inline |
| 2 | + |
| 3 | +class Application |
| 4 | + class ValueError < StandardError |
| 5 | + end |
| 6 | + |
| 7 | + class DigitLengthError < StandardError |
| 8 | + end |
| 9 | + |
| 10 | + USERNAMES: untyped |
| 11 | + |
| 12 | + # @rbs username: String |
| 13 | + # @rbs unit: String |
| 14 | + # @rbs year: String |
| 15 | + # @rbs return: void |
| 16 | + def self.run: (?username: String, ?unit: String, ?year: String) -> void |
| 17 | + |
| 18 | + # @rbs username: String |
| 19 | + # @rbs unit: String |
| 20 | + # @rbs year: String |
| 21 | + # @rbs return: void |
| 22 | + def initialize: (?username: String, ?unit: String, ?year: String) -> void |
| 23 | + |
| 24 | + # @rbs return: void |
| 25 | + def validate_username!: () -> void |
| 26 | + |
| 27 | + # @rbs return: String |
| 28 | + def validate_unit!: () -> String |
| 29 | + |
| 30 | + # @rbs return: String |
| 31 | + def validate_year!: () -> String |
| 32 | + |
| 33 | + # @rbs return: void |
| 34 | + def run: () -> void |
| 35 | + |
| 36 | + private |
| 37 | + |
| 38 | + attr_reader username: untyped |
| 39 | + |
| 40 | + attr_reader unit: untyped |
| 41 | + |
| 42 | + attr_reader year: untyped |
| 43 | + |
| 44 | + # @rbs return: String |
| 45 | + def full_unit: () -> String |
| 46 | + |
| 47 | + # @rbs month: Integer |
| 48 | + # @rbs day: Integer |
| 49 | + # @rbs return: bool |
| 50 | + def is_monday?: (Integer month, Integer day) -> bool |
| 51 | + |
| 52 | + # @rbs month: Integer |
| 53 | + # @rbs day: Integer |
| 54 | + # @rbs return: bool |
| 55 | + def is_saturday?: (Integer month, Integer day) -> bool |
| 56 | + |
| 57 | + # @rbs month: Integer |
| 58 | + # @rbs day: Integer |
| 59 | + # @rbs return: bool |
| 60 | + def is_sunday?: (Integer month, Integer day) -> bool |
| 61 | + |
| 62 | + # @rbs month: Integer |
| 63 | + # @rbs day: Integer |
| 64 | + # @rbs return: bool |
| 65 | + def is_weekend?: (Integer month, Integer day) -> bool |
| 66 | + |
| 67 | + # @rbs return: bool |
| 68 | + def is_leap_year?: () -> bool |
| 69 | + |
| 70 | + # @rbs array: Array[untyped] |
| 71 | + # @rbs date: String |
| 72 | + # @rbs return: String |
| 73 | + def body: (String date, ?Array[untyped] array) -> String |
| 74 | + |
| 75 | + # @rbs directory: String |
| 76 | + # @rbs index: String |
| 77 | + # @rbs day: String |
| 78 | + # @rbs month: String |
| 79 | + # @rbs array: Array[untyped] |
| 80 | + # @rbs return: void |
| 81 | + def export_template: (?directory: String, ?index: String, ?day: String, ?month: String, ?array: Array[untyped]) -> void |
| 82 | + |
| 83 | + # @rbs month: String |
| 84 | + # @rbs return: void |
| 85 | + def create_templates: (String month) ?{ (?) -> untyped } -> void |
| 86 | +end |
0 commit comments