Class: Zuul::Configuration::ClassStruct
- Inherits:
-
Struct
- Object
- Struct
- Zuul::Configuration::ClassStruct
- Defined in:
- lib/zuul/configuration.rb
Instance Method Summary collapse
- #keys ⇒ Object
- #to_array ⇒ Object (also: #to_a)
- #to_hash ⇒ Object (also: #to_h)
Instance Method Details
#keys ⇒ Object
134 135 136 |
# File 'lib/zuul/configuration.rb', line 134 def keys each_pair.collect { |key,val| key }.to_a end |
#to_array ⇒ Object Also known as: to_a
138 139 140 |
# File 'lib/zuul/configuration.rb', line 138 def to_array each_pair.collect { |key,val| val }.to_a end |
#to_hash ⇒ Object Also known as: to_h
143 144 145 |
# File 'lib/zuul/configuration.rb', line 143 def to_hash Hash[each_pair.to_a] end |