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



344
345
346
347
348
349
350
351
352
353
# File 'lib/keeper_secrets_manager/notation.rb', line 344

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.



341
342
343
# File 'lib/keeper_secrets_manager/notation.rb', line 341

def end_pos
  @end_pos
end

#index1Object

Returns the value of attribute index1.



341
342
343
# File 'lib/keeper_secrets_manager/notation.rb', line 341

def index1
  @index1
end

#index2Object

Returns the value of attribute index2.



341
342
343
# File 'lib/keeper_secrets_manager/notation.rb', line 341

def index2
  @index2
end

#parameterObject

Returns the value of attribute parameter.



341
342
343
# File 'lib/keeper_secrets_manager/notation.rb', line 341

def parameter
  @parameter
end

#presentObject

Returns the value of attribute present.



341
342
343
# File 'lib/keeper_secrets_manager/notation.rb', line 341

def present
  @present
end

#sectionObject

Returns the value of attribute section.



341
342
343
# File 'lib/keeper_secrets_manager/notation.rb', line 341

def section
  @section
end

#start_posObject

Returns the value of attribute start_pos.



341
342
343
# File 'lib/keeper_secrets_manager/notation.rb', line 341

def start_pos
  @start_pos
end

#textObject

Returns the value of attribute text.



341
342
343
# File 'lib/keeper_secrets_manager/notation.rb', line 341

def text
  @text
end

Instance Method Details

#present?Boolean



355
356
357
# File 'lib/keeper_secrets_manager/notation.rb', line 355

def present?
  @present
end