class Dhallish::Types::List

Attributes

type[RW]

Type of List elements

Public Class Methods

new(type) click to toggle source
# File lib/types.rb, line 46
def initialize(type)
        @type = type
end

Public Instance Methods

==(otype) click to toggle source
# File lib/types.rb, line 50
def ==(otype) otype.is_a? List and otype.type == @type end
to_s() click to toggle source
# File lib/types.rb, line 51
def to_s() "List #{@type.to_s}" end