Module: RgGen::Core::Base::FeatureLayerExtension::RegisterFile

Includes:
Common
Defined in:
lib/rggen/core/base/feature_layer_extension.rb

Instance Method Summary collapse

Methods included from Common

#bit_field?, #register?, #register_block?, #register_file?, #root?

Instance Method Details

#block_or_fileObject



66
67
68
# File 'lib/rggen/core/base/feature_layer_extension.rb', line 66

def block_or_file
  register_file.block_or_file
end

#files_and_registersObject



74
75
76
# File 'lib/rggen/core/base/feature_layer_extension.rb', line 74

def files_and_registers
  block_or_file.files_and_registers
end

#register_blockObject



62
63
64
# File 'lib/rggen/core/base/feature_layer_extension.rb', line 62

def register_block
  register_file.register_block
end

#register_file(layer = nil) ⇒ Object



70
71
72
# File 'lib/rggen/core/base/feature_layer_extension.rb', line 70

def register_file(layer = nil)
  layer == :upper ? @component.register_file : @component
end

#rootObject



58
59
60
# File 'lib/rggen/core/base/feature_layer_extension.rb', line 58

def root
  register_file.root
end