summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/struct.c b/struct.c
index 35715b2258..86f98dde5a 100644
--- a/struct.c
+++ b/struct.c
@@ -596,8 +596,6 @@ rb_struct_define_under(VALUE outer, const char *name, ...)
* Foo.new(foo: 0, bar: 1, baz: 2)
* # Raises ArgumentError: unknown keywords: baz
*
- * \Method <tt>::[]</tt> is an alias for method <tt>::new</tt>.
- *
* - \Method <tt>:inspect</tt> returns a string representation of the subclass:
*
* Foo.inspect
@@ -1029,8 +1027,6 @@ inspect_struct(VALUE s, VALUE prefix, int recur)
* joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
* joe.inspect # => "#<struct Customer name=\"Joe Smith\", address=\"123 Maple, Anytown NC\", zip=12345>"
*
- * Struct#to_s is an alias for Struct#inspect.
- *
*/
static VALUE
@@ -1049,8 +1045,6 @@ rb_struct_inspect(VALUE s)
* joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
* joe.to_a # => ["Joe Smith", "123 Maple, Anytown NC", 12345]
*
- * Struct#values and Struct#deconstruct are aliases for Struct#to_a.
- *
* Related: #members.
*/
@@ -1372,8 +1366,6 @@ rb_struct_values_at(int argc, VALUE *argv, VALUE s)
* a # => [12345]
*
* With no block given, returns an Enumerator.
- *
- * Struct#filter is an alias for Struct#select.
*/
static VALUE
@@ -1532,7 +1524,6 @@ rb_struct_eql(VALUE s, VALUE s2)
* joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
* joe.size #=> 3
*
- * Struct#length is an alias for Struct#size.
*/
VALUE