Class: KeeperSecretsManager::Notation::Parser::NotationSection

Inherits:
Object
  • Object
show all
Defined in:
lib/keeper_secrets_manager/notation.rb

Overview

Notation section data class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(section_name) ⇒ NotationSection

Returns a new instance of NotationSection.



446
447
448
449
450
451
452
453
454
455
# File 'lib/keeper_secrets_manager/notation.rb', line 446

def initialize(section_name)
  @section = section_name
  @present = false
  @start_pos = -1
  @end_pos = -1
  @text = nil
  @parameter = nil
  @index1 = nil
  @index2 = nil
end

Instance Attribute Details

#end_posObject

Returns the value of attribute end_pos.



443
444
445
# File 'lib/keeper_secrets_manager/notation.rb', line 443

def end_pos
  @end_pos
end

#index1Object

Returns the value of attribute index1.



443
444
445
# File 'lib/keeper_secrets_manager/notation.rb', line 443

def index1
  @index1
end

#index2Object

Returns the value of attribute index2.



443
444
445
# File 'lib/keeper_secrets_manager/notation.rb', line 443

def index2
  @index2
end

#parameterObject

Returns the value of attribute parameter.



443
444
445
# File 'lib/keeper_secrets_manager/notation.rb', line 443

def parameter
  @parameter
end

#presentObject

Returns the value of attribute present.



443
444
445
# File 'lib/keeper_secrets_manager/notation.rb', line 443

def present
  @present
end

#sectionObject

Returns the value of attribute section.



443
444
445
# File 'lib/keeper_secrets_manager/notation.rb', line 443

def section
  @section
end

#start_posObject

Returns the value of attribute start_pos.



443
444
445
# File 'lib/keeper_secrets_manager/notation.rb', line 443

def start_pos
  @start_pos
end

#textObject

Returns the value of attribute text.



443
444
445
# File 'lib/keeper_secrets_manager/notation.rb', line 443

def text
  @text
end

Instance Method Details

#present?Boolean

Returns:

  • (Boolean)


457
458
459
# File 'lib/keeper_secrets_manager/notation.rb', line 457

def present?
  @present
end