Class: Jade::Dict::Dict

Inherits:
Data
  • Object
show all
Defined in:
lib/jade/runtime.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hashObject (readonly)

Returns the value of attribute hash

Returns:

  • (Object)

    the current value of hash



53
54
55
# File 'lib/jade/runtime.rb', line 53

def hash
  @hash
end

Instance Method Details

#to_sObject



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