class Project::Capability

holds a capability in form of an unbound method, extracted from Project::Sandbox module type - regular: 'cap', final: 'cap!'

Attributes

content[R]
name[R]
project_file[R]

Public Class Methods

new(name:, content:, project_file: @name = name) click to toggle source
# File app/project/capability.rb, line 6
def initialize name:, content:, project_file:
  @name = name
  @content = content
  @type = type
  @project_file = project_file
end

Public Instance Methods

to_str() click to toggle source
# File app/project/capability.rb, line 19
def to_str
  name.to_s
end
type() click to toggle source
# File app/project/capability.rb, line 15
def type
  @name[-1] == "!" ? :final : :regular
end