class Haml::AttributeCompiler::AttributeValue
@param type [Symbol] :static or :dynamic @param key [String] @param value [String] Actual string value for :static type, value's Ruby literal for :dynamic type.
Public Instance Methods
to_literal()
click to toggle source
# File lib/haml/attribute_compiler.rb, line 10 def to_literal case type when :static Haml::Util.inspect_obj(value) when :dynamic value end end