Class: Synchronisable::DSL::Macro::Attribute Private

Inherits:
Expression show all
Defined in:
lib/synchronisable/dsl/macro/attribute.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Expression for an attribute definition.

See Also:

Instance Method Summary collapse

Methods inherited from Expression

#handle

Constructor Details

#initialize(options) ⇒ Attribute

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Attribute.


13
14
15
16
# File 'lib/synchronisable/dsl/macro/attribute.rb', line 13

def initialize(options)
  @converter = options[:converter]
  super
end

Instance Method Details

#defaultObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


22
23
24
# File 'lib/synchronisable/dsl/macro/attribute.rb', line 22

def default
  transform(@default)
end

#sourceObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


18
19
20
# File 'lib/synchronisable/dsl/macro/attribute.rb', line 18

def source
  transform(@source)
end