Class: Object

Inherits:
BasicObject
Defined in:
lib/hcl/monkey_patch.rb

Instance Method Summary collapse

Instance Method Details

#hcl_list?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/hcl/monkey_patch.rb', line 16

def hcl_list?
  self.kind_of?(Array) && self.first.hcl_object?
end

#hcl_object?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/hcl/monkey_patch.rb', line 13

def hcl_object?
  self.kind_of?(Hash)
end