lib/columns/raw_data.rb in columns-0.0.1 vs lib/columns/raw_data.rb in columns-0.1.0

- old
+ new

@@ -1,10 +1,21 @@ module Columns - # Public: A simple object to store raw data about a table. + # A simple object to store raw data about a table. class RawData - attr_reader :name, :content + # Public: Get the String table's name. + attr_reader :name + + # Public: Get the String table's content, i.e column's names and + # types. + attr_reader :content + + # Public: Creates a new RawData. + # + # name - A String table's name. + # content - A String content related to the table, directly grabbed + # from a `schema.rb`. def initialize(name, content) @name = name @content = content end