Class: Packerman::Dsl::HashObject
Class Method Summary
collapse
Methods included from Node
#initialize, #method_missing, #to_hash, #type
register
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Packerman::Dsl::Node
Class Method Details
.hash_key ⇒ Object
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
|