Class: Jade::Dict::Dict
- Inherits:
-
Data
- Object
- Data
- Jade::Dict::Dict
- Defined in:
- lib/jade/runtime.rb
Instance Attribute Summary collapse
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
Instance Method Summary collapse
Instance Attribute Details
#hash ⇒ Object (readonly)
Returns the value of attribute hash
53 54 55 |
# File 'lib/jade/runtime.rb', line 53 def hash @hash end |
Instance Method Details
#to_s ⇒ Object
54 55 56 57 |
# File 'lib/jade/runtime.rb', line 54 def to_s pairs = hash.map { |k, v| "#{k}: #{v}" }.join(', ') "Dict(#{pairs})" end |