oak_ruby/formatter/mod.rs
1#![doc = include_str!("../readme.md")]
2
3/// Ruby Code Formatter
4pub struct RubyFormatter {}
5
6impl RubyFormatter {
7 /// Create a new Ruby formatter
8 pub fn new() -> Self {
9 Self {}
10 }
11
12 /// Format the given Ruby source code string
13 pub fn format(&self, source: &str) -> String {
14 source.to_string()
15 }
16}
17
18impl Default for RubyFormatter {
19 fn default() -> Self {
20 Self::new()
21 }
22}