core/data.rbs in rbs-3.3.2 vs core/data.rbs in rbs-3.4.0.pre.1

- old
+ new

@@ -25,11 +25,11 @@ # # Argument accessors are provided: # distance.amount #=> 100 # distance.unit #=> "km" # # Constructed object also has a reasonable definitions of #== operator, #to_h -# hash conversion, and #deconstruct/#deconstruct_keys to be used in pattern +# hash conversion, and #deconstruct / #deconstruct_keys to be used in pattern # matching. # # ::define method accepts an optional block and evaluates it in the context of # the newly defined class. That allows to define additional methods: # @@ -64,14 +64,12 @@ # allowing to change contents of the object and enumerate it. # class Data # <!-- # rdoc-file=struct.c - # - define(name, *symbols) -> class # - define(*symbols) -> class # --> - # Defines a new Data class. If the first argument is a string, the class is - # stored in `Data::<name>` constant. + # Defines a new Data class. # # measure = Data.define(:amount, :unit) # #=> #<Class:0x00007f70c6868498> # measure.new(1, 'km') # #=> #<data amount=1, unit="km">