Sha256: b7ceeb914c63342b558add14ffaf1184c050d75a9a3670b1e47bc0f6c630f296
Contents?: true
Size: 284 Bytes
Versions: 3
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(20).upcase status_text << "#{description}\n" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gemwarrior-0.5.2 | lib/gemwarrior/entities/entity.rb |
gemwarrior-0.5.1 | lib/gemwarrior/entities/entity.rb |
gemwarrior-0.5 | lib/gemwarrior/entities/entity.rb |