Class: Packerman::Dsl::HashObject

Inherits:
Packerman::Dsl show all
Includes:
Node
Defined in:
lib/packerman/dsl/hash_object.rb

Class Method Summary collapse

Methods included from Node

#initialize, #method_missing, #to_hash, #type

Methods inherited from Packerman::Dsl

register

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Packerman::Dsl::Node

Class Method Details

.hash_keyObject



12
13
14
# File 'lib/packerman/dsl/hash_object.rb', line 12

def hash_key
  require_keys + optional_keys
end

.inherited(klass) ⇒ Object



16
17
18
# File 'lib/packerman/dsl/hash_object.rb', line 16

def inherited(klass)
  Packerman::Dsl.const_set(klass.name.demodulize, klass)
end

.register_to_repo(product) ⇒ Object



4
5
6
# File 'lib/packerman/dsl/hash_object.rb', line 4

def register_to_repo(product)
  product
end

.to_subclass(_type) ⇒ Object



8
9
10
# File 'lib/packerman/dsl/hash_object.rb', line 8

def to_subclass(_type)
  self
end