Class: I18nFlow::Formatter
- Inherits:
-
Object
- Object
- I18nFlow::Formatter
- Defined in:
- lib/i18n_flow/formatter.rb
Instance Attribute Summary collapse
-
#ast ⇒ Object
readonly
Returns the value of attribute ast.
Instance Method Summary collapse
- #format! ⇒ Object
-
#initialize(ast) ⇒ Formatter
constructor
A new instance of Formatter.
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
#ast ⇒ Object (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 |