Class: Avm::ApplicationScms::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/application_scms/base.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.type_nameString

Returns:

  • (String)


12
13
14
# File 'lib/avm/application_scms/base.rb', line 12

def type_name
  name.gsub(/#{Regexp.quote('::ApplicationScms::Base')}$/, '').demodulize
end

Instance Method Details

#assert_main_at(path) ⇒ Pathname

Parameters:

  • path (Pathname)

Returns:

  • (Pathname)


24
25
26
# File 'lib/avm/application_scms/base.rb', line 24

def assert_main_at(path) # rubocop:disable Lint/UnusedMethodArgument
  raise_abstract_method __method__
end

#to_sString

Returns:

  • (String)


29
30
31
# File 'lib/avm/application_scms/base.rb', line 29

def to_s
  "#{type_name}[#{to_s_type_specific}]"
end

#to_s_type_specificString

Returns:

  • (String)


34
35
36
# File 'lib/avm/application_scms/base.rb', line 34

def to_s_type_specific
  ''
end