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

#initialize(name, value) ⇒ BlockBinding

Returns a new instance of BlockBinding



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

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

Instance Attribute Details

#argument_bindingsObject (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

#ast_bodyObject (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

#expr_typeObject



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

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