Archived
1
0
Fork 0

Move class Widgets::Message to Widgets::Chat::NewMessage

This commit is contained in:
Braiden Vasco 2017-07-21 17:54:51 +00:00
parent cc56a5eb2a
commit 61fa1d89ec
3 changed files with 5 additions and 3 deletions

View file

@ -19,7 +19,7 @@ require 'widgets/search'
require 'widgets/list' require 'widgets/list'
require 'widgets/chat' require 'widgets/chat'
require 'widgets/message' require 'widgets/chat/new_message'
class Main class Main
def self.inherited(_base) def self.inherited(_base)

View file

@ -13,7 +13,7 @@ module Widgets
@width = width @width = width
@height = height @height = height
@message = Widgets::Message.new x, y + height - 1, width, 1 @message = NewMessage.new x, y + height - 1, width, 1
@focused = false @focused = false

View file

@ -1,6 +1,8 @@
# frozen_string_literal: true # frozen_string_literal: true
module Widgets module Widgets
class Message < Text class Chat
class NewMessage < Text
end
end end
end end