Module: Exclaim::Implementable

Included in:
Component, Helper
Defined in:
lib/exclaim/implementable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject

Returns the value of attribute config.



5
6
7
# File 'lib/exclaim/implementable.rb', line 5

def config
  @config
end

#implementationObject

Returns the value of attribute implementation.



5
6
7
# File 'lib/exclaim/implementable.rb', line 5

def implementation
  @implementation
end

#json_declarationObject

Returns the value of attribute json_declaration.



5
6
7
# File 'lib/exclaim/implementable.rb', line 5

def json_declaration
  @json_declaration
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/exclaim/implementable.rb', line 5

def name
  @name
end

Instance Method Details

#initialize(json_declaration: nil, name: nil, implementation: ->(_config, _env) { nil }, config: {}) ⇒ Object



7
8
9
10
11
12
# File 'lib/exclaim/implementable.rb', line 7

def initialize(json_declaration: nil, name: nil, implementation: ->(_config, _env) { nil }, config: {})
  @json_declaration = json_declaration
  @name = name
  @implementation = implementation
  @config = config
end