Class: RLSL::BaseTranslator::SourceSnippet

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



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

def code
  @code
end

#formatObject

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



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

def format
  @format
end

Instance Method Details

#target_code?Boolean

Returns:

  • (Boolean)


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

def target_code?
  format == :target
end