Class: Marley::ReggaeSchema
Instance Method Summary collapse
- #[](i) ⇒ Object
-
#initialize(*args) ⇒ ReggaeSchema
constructor
A new instance of ReggaeSchema.
Constructor Details
#initialize(*args) ⇒ ReggaeSchema
Returns a new instance of ReggaeSchema.
119 120 121 122 |
# File 'lib/marley/reggae.rb', line 119 def initialize(*args) super replace(map{|spec| ReggaeColSpec.new(spec)}) end |
Instance Method Details
#[](i) ⇒ Object
123 124 125 |
# File 'lib/marley/reggae.rb', line 123 def [](i) i.class==Fixnum ? super : find {|cs|cs.col_name.to_s==i.to_s} end |