class RubyBreaker::TypeDefs::BlockType

This class represents a block (in a method). It has zero or more argument types, nested block type (optional), and a return type.

Attributes

arg_types[RW]

This accessor sets/gets the argument types for this block type.

blk_type[RW]

This accessor sets/gets the block type for this block type.

ret_type[RW]

This accessor sets/gets the return type for this block type.

Public Class Methods

new(arg_types=[],blk_type=nil,ret_type=nil,*args) click to toggle source
Calls superclass method RubyBreaker::TypeDefs::Type::new
# File lib/rubybreaker/type/type.rb, line 165
def initialize(arg_types=[],blk_type=nil,ret_type=nil,*args)
  super(*args)
  @arg_types = arg_types
  @blk_type = blk_type
  @ret_type = ret_type
end