Class: C::Dot

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

Instance Method Summary collapse

Instance Method Details

#depthObject



989
990
991
# File 'lib/csquare.rb', line 989

def depth
  0
end

#return_typename(function, blueprint) ⇒ Object



984
985
986
987
# File 'lib/csquare.rb', line 984

def return_typename function, blueprint
  raise("no field keys found for type #{function.type_of(self.expr.name, blueprint).inspect}") if blueprint.fields.nil?
  blueprint.fields[self.member.name.to_sym]
end