Class: Emfrp::Monofy::IFunc

Inherits:
Struct
  • Object
show all
Defined in:
lib/emfrp/compile/c/monofy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#func_defObject

Returns the value of attribute func_def

Returns:

  • (Object)

    the current value of func_def



11
12
13
# File 'lib/emfrp/compile/c/monofy.rb', line 11

def func_def
  @func_def
end

#param_typingsObject

Returns the value of attribute param_typings

Returns:

  • (Object)

    the current value of param_typings



11
12
13
# File 'lib/emfrp/compile/c/monofy.rb', line 11

def param_typings
  @param_typings
end

#typingObject

Returns the value of attribute typing

Returns:

  • (Object)

    the current value of typing



11
12
13
# File 'lib/emfrp/compile/c/monofy.rb', line 11

def typing
  @typing
end

Instance Method Details

#==(other) ⇒ Object



12
13
14
# File 'lib/emfrp/compile/c/monofy.rb', line 12

def ==(other)
  typing_name_array == other.typing_name_array && self.func_def[:name] == other.func_def[:name]
end

#typing_name_arrayObject



16
17
18
# File 'lib/emfrp/compile/c/monofy.rb', line 16

def typing_name_array
  ([typing] + param_typings).map{|x| x.to_uniq_str}
end