Commit 22ef5cd0 by ivan Lan

Add Shotengai::Harray

parent 790f68a2
module Shotengai
class Harray < Array
def keys
self.map { |obj| obj['key'] || obj[:ket] }
end
def vals
self.map { |obj| obj['key'] || obj[:ket] }
end
end
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment