Sha256: 8ba8ec4f721596fad83222e96bcc65ef48f03e0295bee680aaeba8e1e4d308f4

Contents?: true

Size: 265 Bytes

Versions: 19

Compression:

Stored size: 265 Bytes

Contents

module Examples
  class ScopeBreaking
    include JSON::SchemaBuilder

    def example
      object do |parent|
        other_method parent
      end
    end

    def other_method(parent)
      parent.object :one do
        integer :two
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
json-schema_builder-0.8.2 spec/support/examples/scope_breaking.rb
json-schema_builder-0.8.1 spec/support/examples/scope_breaking.rb
json-schema_builder-0.8.0 spec/support/examples/scope_breaking.rb
json-schema_builder-0.7.1 spec/support/examples/scope_breaking.rb
json-schema_builder-0.7.0 spec/support/examples/scope_breaking.rb
json-schema_builder-0.6.1 spec/support/examples/scope_breaking.rb
json-schema_builder-0.6.0 spec/support/examples/scope_breaking.rb
json-schema_builder-0.5.0 spec/support/examples/scope_breaking.rb
json-schema_builder-0.4.0 spec/support/examples/scope_breaking.rb
json-schema_builder-0.3.1 spec/support/examples/scope_breaking.rb
json-schema_builder-0.3.0 spec/support/examples/scope_breaking.rb
json-schema_builder-0.2.1 spec/support/examples/scope_breaking.rb
json-schema_builder-0.2.0 spec/support/examples/scope_breaking.rb
json-schema_builder-0.1.0 spec/support/examples/scope_breaking.rb
json-schema_builder-0.0.9 spec/support/examples/scope_breaking.rb
json-schema_builder-0.0.8 spec/support/examples/scope_breaking.rb
json-schema_builder-0.0.7 spec/support/examples/scope_breaking.rb
json-schema_builder-0.0.6 spec/support/examples/scope_breaking.rb
json-schema_builder-0.0.5 spec/support/examples/scope_breaking.rb