Class: Cecil::Lang::Rust

Inherits:
Code
  • Object
show all
Defined in:
lib/cecil/lang/rust.rb

Overview

rubocop:disable Style/Documentation

Defined Under Namespace

Modules: Helpers

Constant Summary

Constants inherited from Code

Code::PLACEHOLDER_NO_BRACKETS_PAIR

Instance Method Summary collapse

Methods inherited from Code

#block_ending_pairs, generate, generate_string, #placeholder_delimiting_pairs, #placeholder_ident_re, #placeholder_re, #placeholder_start_re, #scan_for_placeholders

Instance Method Details

#handle_ambiguous_indentationObject

Overrides to ignore ambiguous indentation



10
# File 'lib/cecil/lang/rust.rb', line 10

def handle_ambiguous_indentation = Cecil::Indentation::Ambiguity.ignore

#indent_charsObject

Overrides to use 4 spaces for indentation



7
# File 'lib/cecil/lang/rust.rb', line 7

def indent_chars = "    "