Class: Habaki::Formatter::Indented
- Inherits:
-
Base
- Object
- Base
- Habaki::Formatter::Indented
show all
- Defined in:
- lib/habaki/formatter.rb
Overview
Instance Attribute Summary
Attributes inherited from Base
#level
Instance Method Summary
collapse
Methods inherited from Base
#+, #initialize, #quote
Instance Method Details
#declaration_prefix ⇒ String
69
70
71
|
# File 'lib/habaki/formatter.rb', line 69
def declaration_prefix
" " * @level
end
|
#declarations_join ⇒ String
74
75
76
|
# File 'lib/habaki/formatter.rb', line 74
def declarations_join
"\n"
end
|
#declarations_prefix ⇒ String
79
80
81
|
# File 'lib/habaki/formatter.rb', line 79
def declarations_prefix
"\n"
end
|
#declarations_suffix ⇒ String
84
85
86
|
# File 'lib/habaki/formatter.rb', line 84
def declarations_suffix
"\n"
end
|
#rules_join ⇒ String
94
95
96
|
# File 'lib/habaki/formatter.rb', line 94
def rules_join
"\n\n"
end
|
#rules_prefix ⇒ String
89
90
91
|
# File 'lib/habaki/formatter.rb', line 89
def rules_prefix
" " * @level
end
|