Class: Definition::Types::Include

Inherits:
Base
  • Object
show all
Defined in:
lib/definition/types/include.rb

Defined Under Namespace

Classes: Conformer

Instance Attribute Summary collapse

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

#explain

Constructor Details

#initialize(name, *args) ⇒ Include

Returns a new instance of Include.



12
13
14
15
# File 'lib/definition/types/include.rb', line 12

def initialize(name, *args)
  self.required_items = *args
  super(name)
end

Instance Attribute Details

#required_itemsObject

Returns the value of attribute required_items.



10
11
12
# File 'lib/definition/types/include.rb', line 10

def required_items
  @required_items
end

Instance Method Details

#conform(value) ⇒ Object



17
18
19
# File 'lib/definition/types/include.rb', line 17

def conform(value)
  Conformer.new(self).conform(value)
end