Sha256: 755982c5db41371d3804068727ab19dd758e9866878302472a42a3000674cc4c

Contents?: true

Size: 263 Bytes

Versions: 19

Compression:

Stored size: 263 Bytes

Contents

module SoberSwag
  module Nodes
    ##
    # Objects might have attribute keys, so they're
    # basically a list of attributes
    class Object < SoberSwag::Nodes::Array
      def deconstruct_keys(_)
        { attributes: @elements }
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
sober_swag-0.19.0 lib/sober_swag/nodes/object.rb
sober_swag-0.18.0 lib/sober_swag/nodes/object.rb
sober_swag-0.17.0 lib/sober_swag/nodes/object.rb
sober_swag-0.16.0 lib/sober_swag/nodes/object.rb
sober_swag-0.15.0 lib/sober_swag/nodes/object.rb
sober_swag-0.14.0 lib/sober_swag/nodes/object.rb
sober_swag-0.13.0 lib/sober_swag/nodes/object.rb
sober_swag-0.12.0 lib/sober_swag/nodes/object.rb
sober_swag-0.11.0 lib/sober_swag/nodes/object.rb
sober_swag-0.10.0 lib/sober_swag/nodes/object.rb
sober_swag-0.9.0 lib/sober_swag/nodes/object.rb
sober_swag-0.8.0 lib/sober_swag/nodes/object.rb
sober_swag-0.7.0 lib/sober_swag/nodes/object.rb
sober_swag-0.6.0 lib/sober_swag/nodes/object.rb
sober_swag-0.5.0 lib/sober_swag/nodes/object.rb
sober_swag-0.4.0 lib/sober_swag/nodes/object.rb
sober_swag-0.3.0 lib/sober_swag/nodes/object.rb
sober_swag-0.2.0 lib/sober_swag/nodes/object.rb
sober_swag-0.1.0 lib/sober_swag/nodes/object.rb