Class: Ovto::Component

Inherits:
Object
  • Object
show all
Defined in:
lib/ovto/component.rb

Defined Under Namespace

Classes: MoreThanOneNode

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(wired_actions) ⇒ Component

Returns a new instance of Component.



14
15
16
17
18
# File 'lib/ovto/component.rb', line 14

def initialize(wired_actions)
  @wired_actions = wired_actions
  # Initialize here for the unit tests
  @vdom_tree = []
end

Class Method Details

.hash_to_js_obj(hash) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/ovto/component.rb', line 6

def self.hash_to_js_obj(hash)
  ret = `{}`
  hash.each do |k, v|
    `ret[k] = v`
  end
  ret
end

Instance Method Details

#renderObject



20
21
22
# File 'lib/ovto/component.rb', line 20

def render
  ''
end