Class: HamdownCore::Ast::SilentScript

Inherits:
Struct
  • Object
show all
Includes:
HasChildren
Defined in:
lib/hamdown_core/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasChildren

#<<, #initialize

Instance Attribute Details

#childrenObject

Returns the value of attribute children

Returns:

  • (Object)

    the current value of children



107
108
109
# File 'lib/hamdown_core/ast.rb', line 107

def children
  @children
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



107
108
109
# File 'lib/hamdown_core/ast.rb', line 107

def filename
  @filename
end

#keywordObject

Returns the value of attribute keyword

Returns:

  • (Object)

    the current value of keyword



107
108
109
# File 'lib/hamdown_core/ast.rb', line 107

def keyword
  @keyword
end

#linenoObject

Returns the value of attribute lineno

Returns:

  • (Object)

    the current value of lineno



107
108
109
# File 'lib/hamdown_core/ast.rb', line 107

def lineno
  @lineno
end

#scriptObject

Returns the value of attribute script

Returns:

  • (Object)

    the current value of script



107
108
109
# File 'lib/hamdown_core/ast.rb', line 107

def script
  @script
end

Instance Method Details

#to_hObject



110
111
112
# File 'lib/hamdown_core/ast.rb', line 110

def to_h
  super.merge(type: 'silent_script')
end