Class: TypeProf::Core::Narrowing
- Inherits:
-
Object
- Object
- TypeProf::Core::Narrowing
- Defined in:
- lib/typeprof/core/env/narrowing.rb
Defined Under Namespace
Classes: AndConstraint, Constraint, IsAConstraint, NilConstraint, OrConstraint
Constant Summary collapse
Instance Attribute Summary collapse
-
#map ⇒ Object
readonly
Returns the value of attribute map.
Instance Method Summary collapse
- #and(other) ⇒ Object
-
#initialize(map) ⇒ Narrowing
constructor
A new instance of Narrowing.
- #or(other) ⇒ Object
Constructor Details
#initialize(map) ⇒ Narrowing
Returns a new instance of Narrowing.
3 4 5 6 |
# File 'lib/typeprof/core/env/narrowing.rb', line 3 def initialize(map) raise unless map.is_a?(Hash) @map = map end |
Instance Attribute Details
#map ⇒ Object (readonly)
Returns the value of attribute map.
8 9 10 |
# File 'lib/typeprof/core/env/narrowing.rb', line 8 def map @map end |