Class: Chemlab::Component

Inherits:
Object
  • Object
show all
Extended by:
SingleForwardable
Defined in:
lib/chemlab/component.rb

Overview

The base representation of any UI component.

Direct Known Subclasses

Page

Defined Under Namespace

Classes: DSL

Class Method Summary collapse

Class Method Details

.perform {|new| ... } ⇒ Object

Yields:

  • (new)


11
12
13
# File 'lib/chemlab/component.rb', line 11

def self.perform
  yield new if block_given?
end