Class: Tins::MethodDescription::Parameters::Parameter

Inherits:
Struct
  • Object
show all
Defined in:
lib/tins/method_description.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



4
5
6
# File 'lib/tins/method_description.rb', line 4

def name
  @name
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



4
5
6
# File 'lib/tins/method_description.rb', line 4

def type
  @type
end

Instance Method Details

#==(other) ⇒ Object



5
6
7
# File 'lib/tins/method_description.rb', line 5

def ==(other)
  type == other.type
end

#inspectObject



9
10
11
# File 'lib/tins/method_description.rb', line 9

def inspect
  "#<#{self.class} #{to_s.inspect}>"
end