struct JIS2::TypeName
- JIS2::TypeName
- Struct
- Value
- Object
Included Modules
Defined in:
jis2.crConstructors
Class Method Summary
Instance Method Summary
- #clone
- #copy_with(type _type = @type, name _name = @name)
-
#inspect(io : IO)
Appends this struct's name and instance variables names and values to the given IO.
- #name : String
- #type : Type
Instance methods inherited from module Parser::AST
pos : Hash(Symbol, Pos)
pos,
pos=(pos : Hash(Symbol, Pos))
pos=,
pos? : Hash(Symbol, Pos) | Nil
pos?
Class methods inherited from module Parser::AST
compose_known_rules(builder : Parser::Analysis(T)) forall T
compose_known_rules
Macros inherited from module Parser::AST
rule(*t, given_target = nil)
rule,
smart_enum(e, h)
smart_enum
Constructor Detail
Class Method Detail
Instance Method Detail
def inspect(io : IO)
#
Description copied from struct Struct
Appends this struct's name and instance variables names and values to the given IO.
struct Point
def initialize(@x : Int32, @y : Int32)
end
end
p1 = Point.new 1, 2
p1.to_s # "Point(@x=1, @y=2)"
p1.inspect # "Point(@x=1, @y=2)"