Skip to main content

ruby_lsp/lsp/formatter/
mod.rs

1//! Ruby Code Formatter
2//!
3//! This module provides functionality for formatting Ruby code.
4
5/// Ruby Code Formatter
6pub struct RubyFormatter {}
7
8impl RubyFormatter {
9    /// Create a new Ruby formatter
10    pub fn new() -> Self {
11        Self {}
12    }
13
14    /// Format the given Ruby source code string
15    pub fn format(&self, source: &str) -> String {
16        source.to_string()
17    }
18}
19
20impl Default for RubyFormatter {
21    fn default() -> Self {
22        Self::new()
23    }
24}