Class: Laser::Analysis::Bindings::BlockBinding

Inherits:
Base
  • Object
show all
Defined in:
lib/laser/analysis/bindings.rb

Instance Attribute Summary (collapse)

Attributes inherited from Base

#annotated_type, #ast_node, #definition, #inferred_type, #name, #self_owner, #uses, #value

Instance Method Summary (collapse)

Methods inherited from Base

#<=>, #bind!, #class_used, #deep_dup, #initialize_dup_deep, #inspect, #scope, #to_s

Methods included from Comparable

#<, #<=, #==, #>, #>=, #between?, compare_int

Constructor Details

- (BlockBinding) initialize(name, value)



69
70
71
# File 'lib/laser/analysis/bindings.rb', line 69

def initialize(name, value)
  super(name, value)
end

Instance Attribute Details

- (Object) argument_bindings (readonly)

Returns the value of attribute argument_bindings



68
69
70
# File 'lib/laser/analysis/bindings.rb', line 68

def argument_bindings
  @argument_bindings
end

- (Object) ast_body (readonly)

Returns the value of attribute ast_body



68
69
70
# File 'lib/laser/analysis/bindings.rb', line 68

def ast_body
  @ast_body
end

Instance Method Details

- (Object) expr_type



73
74
75
# File 'lib/laser/analysis/bindings.rb', line 73

def expr_type
  Types::ClassObjectType.new('Proc')
end