Class: EZML::AttributeCompiler::AttributeValue
- Defined in:
- lib/ezml/attribute_compiler.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#to_literal ⇒ String
A Ruby literal of value.
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key
6 7 8 |
# File 'lib/ezml/attribute_compiler.rb', line 6 def key @key end |
#type ⇒ Object
Returns the value of attribute type
6 7 8 |
# File 'lib/ezml/attribute_compiler.rb', line 6 def type @type end |
#value ⇒ Object
Returns the value of attribute value
6 7 8 |
# File 'lib/ezml/attribute_compiler.rb', line 6 def value @value end |
Instance Method Details
#to_literal ⇒ String
Returns A Ruby literal of value.
8 9 10 11 12 13 14 15 |
# File 'lib/ezml/attribute_compiler.rb', line 8 def to_literal case type when :static EZML::Util.inspect_obj(value) when :dynamic value end end |