Class: Emfrp::Monofy::IFunc
- Inherits:
-
Struct
- Object
- Struct
- Emfrp::Monofy::IFunc
- Defined in:
- lib/emfrp/compile/c/monofy.rb
Instance Attribute Summary collapse
-
#func_def ⇒ Object
Returns the value of attribute func_def.
-
#param_typings ⇒ Object
Returns the value of attribute param_typings.
-
#typing ⇒ Object
Returns the value of attribute typing.
Instance Method Summary collapse
Instance Attribute Details
#func_def ⇒ Object
Returns the value of attribute func_def
11 12 13 |
# File 'lib/emfrp/compile/c/monofy.rb', line 11 def func_def @func_def end |
#param_typings ⇒ Object
Returns the value of attribute param_typings
11 12 13 |
# File 'lib/emfrp/compile/c/monofy.rb', line 11 def param_typings @param_typings end |
#typing ⇒ Object
Returns the value of attribute 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_array ⇒ Object
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 |