Sha256: 9c911c882ea7e22703f7644aa97f45f0cca85999a38f94851b08169e39b7220c

Contents?: true

Size: 387 Bytes

Versions: 3

Compression:

Stored size: 387 Bytes

Contents

class Liza::UnitProcedurePart < Liza::Part

  insertion do
    def self.procedure _label, &block
      catch :procedure, &block
    end

    def self.proceed val = nil, &block
      val = yield if val.nil? && block_given?
      throw :procedure, val
    end

    def procedure(_label, &block)= self.class.procedure _label, &block
    def proceed(...)= self.class.proceed(...)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lizarb-1.0.4 lib/liza/unit_parts/unit_procedure_part.rb
lizarb-1.0.3 lib/liza/unit_parts/unit_procedure_part.rb
lizarb-1.0.2 lib/liza/unit_parts/unit_procedure_part.rb