Class: Ast::Crispr::DestinationResolution

Inherits:
Object
  • Object
show all
Defined in:
lib/ast/crispr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mode:, anchor:, destination_profile:) ⇒ DestinationResolution

Returns a new instance of DestinationResolution.



443
444
445
446
447
# File 'lib/ast/crispr.rb', line 443

def initialize(mode:, anchor:, destination_profile:)
  @mode = mode&.to_sym
  @anchor = anchor
  @destination_profile = destination_profile
end

Instance Attribute Details

#anchorObject (readonly)

Returns the value of attribute anchor.



441
442
443
# File 'lib/ast/crispr.rb', line 441

def anchor
  @anchor
end

#destination_profileObject (readonly)

Returns the value of attribute destination_profile.



441
442
443
# File 'lib/ast/crispr.rb', line 441

def destination_profile
  @destination_profile
end

#modeObject (readonly)

Returns the value of attribute mode.



441
442
443
# File 'lib/ast/crispr.rb', line 441

def mode
  @mode
end

Instance Method Details

#append_fallback?Boolean

Returns:

  • (Boolean)


449
450
451
# File 'lib/ast/crispr.rb', line 449

def append_fallback?
  mode == :append
end