Class: I18nFlow::Formatter

Inherits:
Object
  • Object
show all
Defined in:
lib/i18n_flow/formatter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ast) ⇒ Formatter

Returns a new instance of Formatter.



4
5
6
# File 'lib/i18n_flow/formatter.rb', line 4

def initialize(ast)
  @ast = ast
end

Instance Attribute Details

#astObject (readonly)

Returns the value of attribute ast.



2
3
4
# File 'lib/i18n_flow/formatter.rb', line 2

def ast
  @ast
end

Instance Method Details

#format!Object



8
9
10
# File 'lib/i18n_flow/formatter.rb', line 8

def format!
  sort_keys(ast)
end