Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/hcl2-rb/formatter.rb
Instance Method Summary collapse
Instance Method Details
#has_child? ⇒ Boolean
51 52 53 54 55 56 57 58 59 |
# File 'lib/hcl2-rb/formatter.rb', line 51 def has_child? return false if empty? each do |v| return false unless v.is_a?(Hash) end true end |
#to_hcl2 ⇒ Object
61 62 63 |
# File 'lib/hcl2-rb/formatter.rb', line 61 def to_hcl2 to_s end |