Class: Yoda::Parsing::CommentTokenizer::Text

Inherits:
Object
  • Object
show all
Defined in:
lib/yoda/parsing/comment_tokenizer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content) ⇒ Text

Returns a new instance of Text.

Parameters:

  • content (Parslet::Slice)


70
71
72
# File 'lib/yoda/parsing/comment_tokenizer.rb', line 70

def initialize(content)
  @content = content
end

Instance Attribute Details

#contentParslet::Slice (readonly)

Returns:

  • (Parslet::Slice)


67
68
69
# File 'lib/yoda/parsing/comment_tokenizer.rb', line 67

def content
  @content
end