Class: Hyalite::EmptyComponent

Inherits:
Object
  • Object
show all
Includes:
Component
Defined in:
lib/hyalite/component.rb

Constant Summary

Constants included from Component

Component::TAGS

Instance Attribute Summary

Attributes included from Component

#context, #props, #refs

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Component

#child_context, #component_did_mount, #component_did_unmount, #component_did_update, #component_will_mount, #component_will_unmount, #component_will_update, #force_update, included, #init_component, #initial_state, #method_missing, #pp, #respond_to_missing?, #set_state, #should_component_update, #state, #state=

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Hyalite::Component

Class Method Details

.empty_elementObject



244
245
246
# File 'lib/hyalite/component.rb', line 244

def self.empty_element
  @instance ||= ElementObject.new(EmptyComponent, nil, nil, nil, nil)
end

Instance Method Details

#renderObject



248
249
250
# File 'lib/hyalite/component.rb', line 248

def render
  Hyalite.create_element("noscript", nil, nil)
end