Class: IndentR::Ruby
- Inherits:
-
Object
- Object
- IndentR::Ruby
- Defined in:
- lib/intentr/lang/ruby.rb
Instance Method Summary collapse
-
#initialize ⇒ Ruby
constructor
A new instance of Ruby.
Constructor Details
#initialize ⇒ Ruby
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 |