Class: HadoopDsl::LogAnalysis::LogAnalysisMapperModel::ColumnArray
- Inherits:
-
Array
- Object
- Array
- HadoopDsl::LogAnalysis::LogAnalysisMapperModel::ColumnArray
- 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 |