Class: Orbacle::ProcType
- Inherits:
-
Object
- Object
- Orbacle::ProcType
- Defined in:
- lib/orbacle/lambda_type.rb
Instance Attribute Summary collapse
-
#lambda_id ⇒ Object
readonly
Returns the value of attribute lambda_id.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #bottom? ⇒ Boolean
- #each_possible_type {|_self| ... } ⇒ Object
- #hash ⇒ Object
-
#initialize(lambda_id) ⇒ ProcType
constructor
A new instance of ProcType.
- #name ⇒ Object
Constructor Details
#initialize(lambda_id) ⇒ ProcType
Returns a new instance of ProcType.
5 6 7 |
# File 'lib/orbacle/lambda_type.rb', line 5 def initialize(lambda_id) @lambda_id = lambda_id end |
Instance Attribute Details
#lambda_id ⇒ Object (readonly)
Returns the value of attribute lambda_id.
9 10 11 |
# File 'lib/orbacle/lambda_type.rb', line 9 def lambda_id @lambda_id end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
11 12 13 14 |
# File 'lib/orbacle/lambda_type.rb', line 11 def ==(other) self.class == other.class && self.lambda_id == other.lambda_id end |
#bottom? ⇒ Boolean
28 29 30 |
# File 'lib/orbacle/lambda_type.rb', line 28 def bottom? false end |
#each_possible_type {|_self| ... } ⇒ Object
24 25 26 |
# File 'lib/orbacle/lambda_type.rb', line 24 def each_possible_type yield self end |
#hash ⇒ Object
16 17 18 19 20 21 |
# File 'lib/orbacle/lambda_type.rb', line 16 def hash [ self.class, self.lambda_id, ].hash ^ BIG_VALUE end |
#name ⇒ Object
32 33 34 |
# File 'lib/orbacle/lambda_type.rb', line 32 def name "Proc" end |