Sha256: 03008920af9ac6cec3cbf8beb56d7f666e573541284c0db49f001785ab6976cd

Contents?: true

Size: 953 Bytes

Versions: 5

Compression:

Stored size: 953 Bytes

Contents

# -*- coding: utf-8 -*-
#
# Copyright (C) 2012  Kouhei Sutou <kou@clear-code.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License version 2.1 as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

module Groonga
  class Database
    # @return [Array<Groonga::Table>] tables defined in the database.
    def tables
      find_all do |object|
        object.is_a?(Groonga::Table)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rroonga-2.0.8-x86-mingw32 lib/groonga/database.rb
rroonga-2.0.8 lib/groonga/database.rb
rroonga-2.0.7-x86-mingw32 lib/groonga/database.rb
rroonga-2.0.7 lib/groonga/database.rb
rroonga-2.0.6 lib/groonga/database.rb