Sha256: 60ff208c421b8f72d3f89c86e0f421664266d6046a49d4fefad4aa0f48a38c4b
Contents?: true
Size: 863 Bytes
Versions: 9
Compression:
Stored size: 863 Bytes
Contents
# frozen_string_literal: true # Base Stage class class BaseStage # # Initialize Stage with ConceptAI # @param concept_ai (ConceptAI) def initialize(concept_ai) @concept_ai = concept_ai end def run raise "Implement run method!" end def concept @concept_ai.concept end def name(option = :raw) @concept_ai.concept.name(option) end def names raise "Change names by concept.names" end def num @concept_ai.num end def lang raise "Change lang by concept.lang" end def type raise "Change type by concept.type" end def texts raise "Change texts by cocept.texts" end def images raise "Change images by cocept.images" end def neighbors raise "Change neighbors by concept.neighbors" end def random_image_for(option) @concept_ai.random_image_for(option) end end
Version data entries
9 entries across 9 versions & 1 rubygems