Class: RLSL::BaseTranslator::CodeScanner::Segment

Inherits:
Struct
  • Object
show all
Defined in:
lib/rlsl/base_translator/code_scanner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



6
7
8
# File 'lib/rlsl/base_translator/code_scanner.rb', line 6

def text
  @text
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



6
7
8
# File 'lib/rlsl/base_translator/code_scanner.rb', line 6

def type
  @type
end

Instance Method Details

#code?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/rlsl/base_translator/code_scanner.rb', line 7

def code?
  type == :code
end