|
| 1 | +# Generated from src/application.rb with RBS::Inline |
| 2 | + |
| 3 | +class Application |
| 4 | + class InvalidFilenameError < StandardError |
| 5 | + end |
| 6 | + |
| 7 | + class InvalidOrderError < StandardError |
| 8 | + end |
| 9 | + |
| 10 | + # @rbs dirname: String |
| 11 | + # @rbs filename: String |
| 12 | + # @rbs order: untyped |
| 13 | + # @rbs return: void |
| 14 | + def self.run: (?dirname: String, ?filename: String, ?order: untyped) -> void |
| 15 | + |
| 16 | + # @rbs dirname: String |
| 17 | + # @rbs filename: String |
| 18 | + # @rbs order: untyped |
| 19 | + # ⚠️ `order` expects a class which can be converted to Symbol by `to_sym` method(e.g. String, Symbol). |
| 20 | + # ⚠️ Otherwise, it will raise an error when validating order. |
| 21 | + # @rbs return: void |
| 22 | + def initialize: (?dirname: String, ?filename: String, ?order: untyped) -> void |
| 23 | + |
| 24 | + # @rbs return: String |
| 25 | + def validate_filename!: () -> String |
| 26 | + |
| 27 | + # @rbs return: Symbol |
| 28 | + def validate_order!: () -> Symbol |
| 29 | + |
| 30 | + # @rbs return: void |
| 31 | + def run: () -> void |
| 32 | + |
| 33 | + private |
| 34 | + |
| 35 | + attr_reader dirname: untyped |
| 36 | + |
| 37 | + attr_reader filename: untyped |
| 38 | + |
| 39 | + attr_reader filepath: untyped |
| 40 | + |
| 41 | + attr_reader order: untyped |
| 42 | + |
| 43 | + # @rbs return: Hash[String, untyped]? |
| 44 | + def json_data: () -> Hash[String, untyped]? |
| 45 | + |
| 46 | + # @rbs return: Hash[String, untyped]? |
| 47 | + def converted_json_data_with_sorting: () -> Hash[String, untyped]? |
| 48 | + |
| 49 | + # @rbs hash: Hash[String, untyped] |
| 50 | + # @rbs return: String |
| 51 | + def dump_converted_json_data_with_sorting: (?Hash[String, untyped] hash) -> String |
| 52 | + |
| 53 | + # @rbs return: bool |
| 54 | + def test_env?: () -> bool |
| 55 | + |
| 56 | + # @rbs message: String |
| 57 | + # @rbs return: void |
| 58 | + def output: (String message) -> void |
| 59 | +end |
0 commit comments