Class: Jade::Type::Constructor

Inherits:
Data
  • Object
show all
Includes:
Base
Defined in:
lib/jade/type/constructor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



3
4
5
# File 'lib/jade/type/constructor.rb', line 3

def name
  @name
end

Instance Method Details

#apply(types) ⇒ Object



10
11
12
# File 'lib/jade/type/constructor.rb', line 10

def apply(types)
  Application[self, types]
end

#to_sObject



6
7
8
# File 'lib/jade/type/constructor.rb', line 6

def to_s
  name.split('.').last
end

#unbound_varsObject



14
15
16
# File 'lib/jade/type/constructor.rb', line 14

def unbound_vars
  []
end