Class: Canopus::Language::Definition

Inherits:
Data
  • Object
show all
Defined in:
lib/canopus/language/definition.rb,
sig/canopus.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#comment ⇒ Object (readonly)

Returns the value of attribute comment

Returns:

  • (Object) —

    the current value of comment



5
6
7
# File 'lib/canopus/language/definition.rb', line 5

def comment
  @comment
end

#extensions ⇒ Object (readonly)

Returns the value of attribute extensions

Returns:

  • (Object) —

    the current value of extensions



5
6
7
# File 'lib/canopus/language/definition.rb', line 5

def extensions
  @extensions
end

#indent_close ⇒ Object (readonly)

Returns the value of attribute indent_close

Returns:

  • (Object) —

    the current value of indent_close



5
6
7
# File 'lib/canopus/language/definition.rb', line 5

def indent_close
  @indent_close
end

#indent_open ⇒ Object (readonly)

Returns the value of attribute indent_open

Returns:

  • (Object) —

    the current value of indent_open



5
6
7
# File 'lib/canopus/language/definition.rb', line 5

def indent_open
  @indent_open
end

#lexer ⇒ Object (readonly)

Returns the value of attribute lexer

Returns:

  • (Object) —

    the current value of lexer



5
6
7
# File 'lib/canopus/language/definition.rb', line 5

def lexer
  @lexer
end

#name ⇒ Object (readonly)

Returns the value of attribute name

Returns:

  • (Object) —

    the current value of name



5
6
7
# File 'lib/canopus/language/definition.rb', line 5

def name
  @name
end

#servers ⇒ Object (readonly)

Returns the value of attribute servers

Returns:

  • (Object) —

    the current value of servers



5
6
7
# File 'lib/canopus/language/definition.rb', line 5

def servers
  @servers
end

Class Method Details

.new ⇒ instance

Parameters:

  • name (String)
  • lexer (String)
  • extensions (Array[String])
  • comment (String)
  • indent_open (Regexp)
  • indent_close (Regexp)
  • servers (Array[Array[String]])

Returns:

  • (instance)


251
# File 'sig/canopus.rbs', line 251

def self.new: (String name, String lexer, Array[String] extensions, String comment, Regexp indent_open, Regexp indent_close, Array[Array[String]] servers) -> instance