Class: Zuul::Configuration::ClassStruct

Inherits:
Struct
  • Object
show all
Defined in:
lib/zuul/configuration.rb

Instance Method Summary collapse

Instance Method Details

#keysObject



134
135
136
# File 'lib/zuul/configuration.rb', line 134

def keys
  each_pair.collect { |key,val| key }.to_a
end

#to_arrayObject 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_hashObject Also known as: to_h



143
144
145
# File 'lib/zuul/configuration.rb', line 143

def to_hash
  Hash[each_pair.to_a]
end