Class: Chelsy::Comment::Single

Inherits:
Base show all
Defined in:
lib/chelsy/ast.rb

Overview

// ...

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body, **rest) ⇒ Single

Returns a new instance of Single.



77
78
79
80
# File 'lib/chelsy/ast.rb', line 77

def initialize(body, **rest)
  @body = body.dup
  super **rest
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



75
76
77
# File 'lib/chelsy/ast.rb', line 75

def body
  @body
end