Sha256: c753f39815dff4eb5f83a8d545d177ff9e3d11616fb6a0a0f1cc049d449d4539
Contents?: true
Size: 536 Bytes
Versions: 1
Compression:
Stored size: 536 Bytes
Contents
module Freebase class Category # Name of the category attr_reader :name # Metadata associated with the category attr_reader :metadata # # Creates a new Category object with the specified _name_. # def initialize(name) @name = name @metadata = {} end # # Returns the metadata with the specified _name_. # def [](name) @metadata[name] end # # Returns the name of the category in +String+ form. # def to_s @name.to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
freescrape-0.0.9 | lib/freebase/category.rb |