Sha256: 50990baedfcd0d563637b695f23c410d0486b3ba3ae186fd5d4e44e4b591d284

Contents?: true

Size: 284 Bytes

Versions: 7

Compression:

Stored size: 284 Bytes

Contents

# lib/gemwarrior/entities/entity.rb
# Base class for an interactable object

module Gemwarrior
  class Entity
    attr_accessor :name, 
                  :description

    def status
      status_text =  name.ljust(26).upcase
      status_text << "#{description}\n"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gemwarrior-0.7.0 lib/gemwarrior/entities/entity.rb
gemwarrior-0.6.5 lib/gemwarrior/entities/entity.rb
gemwarrior-0.6.4 lib/gemwarrior/entities/entity.rb
gemwarrior-0.6.3 lib/gemwarrior/entities/entity.rb
gemwarrior-0.6.2 lib/gemwarrior/entities/entity.rb
gemwarrior-0.6.1 lib/gemwarrior/entities/entity.rb
gemwarrior-0.6.0 lib/gemwarrior/entities/entity.rb