Class: IndentR::Ruby

Inherits:
Object
  • Object
show all
Defined in:
lib/intentr/lang/ruby.rb

Instance Method Summary collapse

Constructor Details

#initializeRuby

Returns a new instance of Ruby.



3
4
5
6
7
8
# File 'lib/intentr/lang/ruby.rb', line 3

def initialize
  @opening_and_modifier_tokens = %w[if unless until while].to_set
  @opening_tokens = %w[begin case class def for module do {].to_set
  @closing_tokens = %w[end }].to_set
  @separator = [';', :operator]
end