Class: Jade::Frontend::TypeChecking::Expected
- Inherits:
-
Data
- Object
- Data
- Jade::Frontend::TypeChecking::Expected
- Defined in:
- lib/jade/frontend/type_checking/expected.rb
Instance Attribute Summary collapse
-
#authoritative ⇒ Object
readonly
Returns the value of attribute authoritative.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#authoritative ⇒ Object (readonly)
Returns the value of attribute authoritative
4 5 6 |
# File 'lib/jade/frontend/type_checking/expected.rb', line 4 def @authoritative end |
#type ⇒ Object (readonly)
Returns the value of attribute type
4 5 6 |
# File 'lib/jade/frontend/type_checking/expected.rb', line 4 def type @type end |
Class Method Details
.check(type) ⇒ Object
9 10 11 |
# File 'lib/jade/frontend/type_checking/expected.rb', line 9 def self.check(type) self[type, true] end |
.infer(type) ⇒ Object
13 14 15 |
# File 'lib/jade/frontend/type_checking/expected.rb', line 13 def self.infer(type) self[type, false] end |
Instance Method Details
#check? ⇒ Boolean
5 6 7 |
# File 'lib/jade/frontend/type_checking/expected.rb', line 5 def check? == true end |
#rigid_vars ⇒ Object
17 18 19 |
# File 'lib/jade/frontend/type_checking/expected.rb', line 17 def rigid_vars check? ? type.unbound_vars : [] end |