Class: Liza::Part

Inherits:
Unit
  • Object
show all
Defined in:
lib/liza/meta/part.rb

Class Method Summary collapse

Methods inherited from Unit

const_missing, division, part, system, #system, test_class

Class Method Details

.extension(&block) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/liza/meta/part.rb', line 10

def self.extension &block
  if block_given?
    @extension = block
  else
    @extension
  end
end

.insertion(&block) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/liza/meta/part.rb', line 2

def self.insertion &block
  if block_given?
    @insertion = block
  else
    @insertion
  end
end