File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -15,19 +15,30 @@ use inflector::Inflector;
15
15
declare_types ! {
16
16
reopen class RubyString {
17
17
def to_snake_case( self ) -> String {
18
- self . to_string( ) . to_snake_case( ) ;
18
+ self . to_string( ) . to_snake_case( )
19
19
}
20
20
21
21
def to_camel_case( self ) -> String {
22
- self . to_string( ) . to_camel_case( ) ;
22
+ self . to_string( ) . to_camel_case( )
23
23
}
24
24
25
25
def to_class_case( self ) -> String {
26
- self . to_string( ) . to_class_case( ) ;
26
+ self . to_string( ) . to_class_case( )
27
27
}
28
28
29
29
def to_kebab_case( self ) -> String {
30
- self . to_string( ) . to_kebab_case( ) ;
30
+ self . to_string( ) . to_kebab_case( )
31
31
}
32
32
}
33
33
}
34
+
35
+
36
+ // TODO: Helix is eventually going to implement this
37
+ use helix:: { UncheckedValue , ToRust } ;
38
+
39
+ impl ToString for RubyString {
40
+ fn to_string ( & self ) -> String {
41
+ let checked = self . 0 . to_checked ( ) . unwrap ( ) ;
42
+ checked. to_rust ( )
43
+ }
44
+ }
You can’t perform that action at this time.
0 commit comments