Sha256: caaeead03190b540cda6fd48ff7fa79caca8aacc16bd40c0f243bb75d4625e85
Contents?: true
Size: 433 Bytes
Versions: 1
Compression:
Stored size: 433 Bytes
Contents
# frozen_string_literal: true class Sinclair class DummyBuilder < Sinclair def init add_method(:blocked) { 1 } add_method(:defined, "@value = value + #{options_object&.increment || 1}") add_method(:value, cached: true) { 0 } add_method(:type_block, type: :block) { 3 } add_method(:type_string, '10', type: :string) add_method(:attr_accessor, :some_attribute, type: :call) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinclair-1.11.0 | spec/support/models/dummy_builder.rb |