Class: Dhallish::Types::Unresolved
- Inherits:
-
Object
- Object
- Dhallish::Types::Unresolved
- Defined in:
- lib/types.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #==(otype) ⇒ Object
-
#initialize(name) ⇒ Unresolved
constructor
A new instance of Unresolved.
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ Unresolved
Returns a new instance of Unresolved.
122 123 124 |
# File 'lib/types.rb', line 122 def initialize(name) @name = name.to_sym end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
121 122 123 |
# File 'lib/types.rb', line 121 def name @name end |
Instance Method Details
#==(otype) ⇒ Object
125 |
# File 'lib/types.rb', line 125 def ==(otype) otype.is_a? Unresolved and otype.name == @name end |
#to_s ⇒ Object
126 |
# File 'lib/types.rb', line 126 def to_s() "#{@name}" end |