Class: Tailor

Inherits:
Object
  • Object
show all
Defined in:
lib/tailor.rb,
lib/tailor/cli.rb,
lib/tailor/lexer.rb,
lib/tailor/ruler.rb,
lib/tailor/critic.rb,
lib/tailor/logger.rb,
lib/tailor/rulers.rb,
lib/tailor/problem.rb,
lib/tailor/version.rb,
lib/tailor/reporter.rb,
lib/tailor/formatter.rb,
lib/tailor/rake_task.rb,
lib/tailor/lexed_line.rb,
lib/tailor/cli/options.rb,
lib/tailor/lexer/token.rb,
lib/tailor/configuration.rb,
lib/tailor/runtime_error.rb,
lib/tailor/formatters/text.rb,
lib/tailor/formatters/yaml.rb,
lib/tailor/configuration/style.rb,
lib/tailor/composite_observable.rb,
lib/tailor/lexer/lexer_constants.rb,
lib/tailor/configuration/file_set.rb,
lib/tailor/rulers/allow_hard_tabs_ruler.rb,
lib/tailor/rulers/max_line_length_ruler.rb,
lib/tailor/rulers/trailing_newlines_ruler.rb,
lib/tailor/rulers/allow_invalid_ruby_ruler.rb,
lib/tailor/rulers/indentation_spaces_ruler.rb,
lib/tailor/rulers/spaces_after_comma_ruler.rb,
lib/tailor/rulers/spaces_after_lbrace_ruler.rb,
lib/tailor/rulers/spaces_after_lparen_ruler.rb,
lib/tailor/rulers/spaces_before_comma_ruler.rb,
lib/tailor/rulers/spaces_before_lbrace_ruler.rb,
lib/tailor/rulers/spaces_before_rbrace_ruler.rb,
lib/tailor/rulers/spaces_before_rparen_ruler.rb,
lib/tailor/rulers/spaces_after_lbracket_ruler.rb,
lib/tailor/rulers/spaces_before_rbracket_ruler.rb,
lib/tailor/rulers/spaces_in_empty_braces_ruler.rb,
lib/tailor/rulers/allow_conditional_parentheses.rb,
lib/tailor/rulers/max_code_lines_in_class_ruler.rb,
lib/tailor/rulers/allow_camel_case_methods_ruler.rb,
lib/tailor/rulers/max_code_lines_in_method_ruler.rb,
lib/tailor/rulers/spaces_after_conditional_ruler.rb,
lib/tailor/rulers/allow_trailing_line_spaces_ruler.rb,
lib/tailor/rulers/indentation_spaces_ruler/ast_xml.rb,
lib/tailor/rulers/allow_unnecessary_double_quotes_ruler.rb,
lib/tailor/rulers/allow_unnecessary_interpolation_ruler.rb,
lib/tailor/rulers/allow_screaming_snake_case_classes_ruler.rb,
lib/tailor/rulers/indentation_spaces_ruler/argument_alignment.rb,
lib/tailor/rulers/indentation_spaces_ruler/line_continuations.rb,
lib/tailor/rulers/indentation_spaces_ruler/indentation_manager.rb

Defined Under Namespace

Modules: CompositeObservable, Formatters, LexerConstants, Rulers Classes: CLI, Configuration, Critic, Formatter, LexedLine, Lexer, Logger, Problem, RakeTask, Reporter, Ruler, RuntimeError

Constant Summary collapse

VERSION =
'1.4.1'

Class Method Summary collapse

Class Method Details

.config {|configuration| ... } ⇒ Object

Yields:

  • (configuration)


4
5
6
7
8
9
# File 'lib/tailor.rb', line 4

def self.config
  configuration = Tailor::Configuration.new
  yield configuration if block_given?

  configuration
end