1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

This has been just an accessor since 1b784bcc50

This commit is contained in:
Akira Matsuda 2019-05-25 16:16:40 +09:00
parent 52e1698e1f
commit d6c50ecb5b

View file

@ -135,7 +135,7 @@ module Haml
# formatting errors. # formatting errors.
# #
# Defaults to `false`. # Defaults to `false`.
attr_reader :remove_whitespace attr_accessor :remove_whitespace
# Whether or not attribute hashes and Ruby scripts designated by `=` or `~` # Whether or not attribute hashes and Ruby scripts designated by `=` or `~`
# should be evaluated. If this is `true`, said scripts are rendered as empty # should be evaluated. If this is `true`, said scripts are rendered as empty
@ -241,10 +241,6 @@ module Haml
xhtml? || @cdata xhtml? || @cdata
end end
def remove_whitespace=(value)
@remove_whitespace = value
end
def encoding=(value) def encoding=(value)
return unless value return unless value
@encoding = value.is_a?(Encoding) ? value.name : value.to_s @encoding = value.is_a?(Encoding) ? value.name : value.to_s