Archived
1
0
Fork 0

Turn module React::Curses into class

This commit is contained in:
Braiden Vasco 2017-07-31 02:36:08 +00:00
parent ca855f4ceb
commit 5b4ed276b2
9 changed files with 9 additions and 9 deletions

View file

@ -3,6 +3,6 @@
require 'react/curses/nodes'
module React
module Curses
class Curses
end
end

View file

@ -11,7 +11,7 @@ require 'react/curses/nodes/lines'
require 'react/curses/nodes/window'
module React
module Curses
class Curses
module Nodes
def self.klass_for(element)
raise TypeError, "expected element to be an #{Element}" unless element.is_a? Element

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true
module React
module Curses
class Curses
module Nodes
class Base
attr_reader :parent, :element

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true
module React
module Curses
class Curses
module Nodes
class Component < Base
def instance

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true
module React
module Curses
class Curses
module Nodes
class Line < Wrapper
def draw

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true
module React
module Curses
class Curses
module Nodes
class Lines < Wrapper
def children

View file

@ -3,7 +3,7 @@
module React
using Helpers
module Curses
class Curses
module Nodes
class Text < Base
def draw

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true
module React
module Curses
class Curses
module Nodes
class Window < Wrapper
def window

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true
module React
module Curses
class Curses
module Nodes
class Wrapper < Base
def draw