Class: HadoopDsl::LogAnalysis::LogAnalysisMapperModel::ColumnArray

Inherits:
Array
  • Object
show all
Defined in:
lib/log_analysis.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



151
152
153
154
155
156
157
# File 'lib/log_analysis.rb', line 151

def [](key)
  case key
  when Integer then at(key)
  when Symbol then (select {|c| c.name == key}).first
  when String then (select {|c| c.name == key.to_sym}).first
  end
end