Class: Avm::Scms::Base

Inherits:
Object
  • Object
show all
Includes:
With::ApplicationStereotype
Defined in:
lib/avm/scms/base.rb,
lib/avm/scms/base/commits.rb,
lib/avm/scms/base/milestones.rb

Direct Known Subclasses

Null

Defined Under Namespace

Modules: Commits, Milestones

Instance Method Summary collapse

Methods included from With::ApplicationStereotype

#stereotype_namespace_module

Instance Method Details

#changed_filesAvm::Scms::ChangedFile



19
20
21
# File 'lib/avm/scms/base.rb', line 19

def changed_files
  raise_abstract_method __method__
end

#interval(_from, _to) ⇒ Avm::Scms::Interval

Returns:



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

def interval(_from, _to)
  raise_abstract_method __method__
end

#nameObject



28
29
30
# File 'lib/avm/scms/base.rb', line 28

def name
  self.class.name.demodulize
end

#relative_path_from_parent_scmPathname

Returns:

  • (Pathname)


33
34
35
36
37
# File 'lib/avm/scms/base.rb', line 33

def relative_path_from_parent_scm
  parent_scm.if_present(nil) do |v|
    path.relative_path_from(v.path)
  end
end

#subsEnumerable<Avm::Scms::Base>

Returns:



40
41
42
# File 'lib/avm/scms/base.rb', line 40

def subs
  raise_abstract_method __method__
end

#to_sObject



44
45
46
# File 'lib/avm/scms/base.rb', line 44

def to_s
  name
end