Sha256: a1c62a8a32b3df1137a6b3bca7d7454c367acc04c8210d756d18cafb9efbbb62

Contents?: true

Size: 291 Bytes

Versions: 34

Compression:

Stored size: 291 Bytes

Contents

class HasMacroFoo
  include Synchronisable::DSL::Macro

  attribute :bar, default: 1
  attribute :foo
  attribute :baz, default: -> { bar + 1 }
  attribute :carefull, default: -> { raise NotImplementedError }
  attribute :xyz, converter: ->(x) { x.to_s }
  attribute :arr

  method :sqr
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
synchronisable-1.3.1 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.3.0 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.2.7 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.2.6 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.2.5 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.2.4 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.2.3 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.2.2 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.2.1 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.2.0 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.1.9 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.1.8 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.1.7 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.1.6 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.1.5 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.1.4 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.1.3 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.1.2 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.1.1 spec/synchronisable/support/has_macro_foo.rb
synchronisable-1.1.0 spec/synchronisable/support/has_macro_foo.rb