class Dhallish::Types::Optional

Attributes

type[RW]

Public Class Methods

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

Public Instance Methods

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