Class: RLSL::BaseTranslator::CodeScanner::Segment
- Inherits:
-
Struct
- Object
- Struct
- RLSL::BaseTranslator::CodeScanner::Segment
- Defined in:
- lib/rlsl/base_translator/code_scanner.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text
6 7 8 |
# File 'lib/rlsl/base_translator/code_scanner.rb', line 6 def text @text end |
#type ⇒ Object
Returns the value of attribute type
6 7 8 |
# File 'lib/rlsl/base_translator/code_scanner.rb', line 6 def type @type end |
Instance Method Details
#code? ⇒ Boolean
7 8 9 |
# File 'lib/rlsl/base_translator/code_scanner.rb', line 7 def code? type == :code end |