Sha256: 1ed6b2e844becd5414ac2f3e2a7b86b3e5302fccbad18860765f0a8e4585f848

Contents?: true

Size: 1.1 KB

Versions: 25

Compression:

Stored size: 1.1 KB

Contents

# If this class gets too big you may want to split it up into modules, run the following
# command to add a module to it:
#
<% if @block -%>
#   origen new module <%= Pathname.new(resource_path_to_blocks_dir(@resource_path)).relative_path_from(Origen.root) %>/model.rb my_module_name
<% else -%>
#   origen new module <%= Pathname.new(resource_path_to_lib_file(@resource_path)).relative_path_from(Origen.root) %> my_module_name
<% end -%>
#
class <%= @namespaces.map { |n| camelcase(n[1]) }.join('::') %>::<%= camelcase(@name) %><%= @parent_class ? " < #{@parent_class}" : '' %>
<% if @root_class -%>
<% if @top_level -%>
  include Origen::TopLevel
<% else -%>
  include Origen::Model
<% end -%>

  def initialize(options = {})
  end
<% else -%>
# super means that the initialize request will get passed onto the parent class's initialize method. 
# i.e. the one defined in <%= @parent_class %>
# If you want to override that and add a specific implementation for this DUT type,
# then simply delete the super below and add the code you wish to handle the request.
  def initialize(options = {})
    super
  end
<% end -%>
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
origen-0.60.18 templates/code_generators/model.rb
origen-0.60.17 templates/code_generators/model.rb
origen-0.60.16 templates/code_generators/model.rb
origen-0.60.14 templates/code_generators/model.rb
origen-0.60.13 templates/code_generators/model.rb
origen-0.60.12 templates/code_generators/model.rb
origen-0.60.11 templates/code_generators/model.rb
origen-0.60.10 templates/code_generators/model.rb
origen-0.60.9 templates/code_generators/model.rb
origen-0.60.8 templates/code_generators/model.rb
origen-0.60.7 templates/code_generators/model.rb
origen-0.60.6 templates/code_generators/model.rb
origen-0.60.5 templates/code_generators/model.rb
origen-0.60.4 templates/code_generators/model.rb
origen-0.60.3 templates/code_generators/model.rb
origen-0.60.2 templates/code_generators/model.rb
origen-0.60.1 templates/code_generators/model.rb
origen-0.60.0 templates/code_generators/model.rb
origen-0.59.8 templates/code_generators/model.rb
origen-0.59.7 templates/code_generators/model.rb