Class: Ibex::Frontend::AST::ParserSetting

Inherits:
Struct
  • Object
show all
Includes:
Node
Defined in:
lib/ibex/frontend/ast.rb,
sig/ibex/frontend/ast.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Node

#serialize, #to_h

Instance Attribute Details

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



212
213
214
# File 'lib/ibex/frontend/ast.rb', line 212

def key
  @key
end

#locObject

Returns the value of attribute loc

Returns:

  • (Object)

    the current value of loc



212
213
214
# File 'lib/ibex/frontend/ast.rb', line 212

def loc
  @loc
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



212
213
214
# File 'lib/ibex/frontend/ast.rb', line 212

def value
  @value
end

Class Method Details

.new(key:, value:, loc:) ⇒ instance .new(arg0) ⇒ instance

Overloads:

  • .new(key:, value:, loc:) ⇒ instance

    Parameters:

    • key: (Symbol)
    • value: (Symbol)
    • loc: (Location)

    Returns:

    • (instance)
  • .new(arg0) ⇒ instance

    Parameters:

    • arg0 ({ ?key: Symbol, ?value: Symbol, ?loc: Location })

    Returns:

    • (instance)


305
306
# File 'sig/ibex/frontend/ast.rbs', line 305

def self.new: (?key: Symbol, ?value: Symbol, ?loc: Location) -> instance
| ({ ?key: Symbol, ?value: Symbol, ?loc: Location }) -> instance