class Haml::AttributeCompiler::AttributeValue
@param value [String] Actual string value for :static type, value’s Ruby literal for :dynamic type.
@param key [String]
@param type [Symbol] :static or :dynamic
def base_key
Key's substring before a hyphen. This is necessary because values with the same
def base_key key.split('-', 2).first end
def to_literal
-
(String)
- A Ruby literal of value.
def to_literal case type when :static Haml::Util.inspect_obj(value) when :dynamic value end end