Class: Dhallish::Types::Unresolved

Inherits:
Object
  • Object
show all
Defined in:
lib/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

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_sObject



126
# File 'lib/types.rb', line 126

def to_s() "#{@name}" end