struct Datetime
- Datetime
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
cli/data/datetime.crcli/proto/Datetime.pb.cr
Constant Summary
-
FIELDS =
{1 => {name: :value, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
-
Fields =
{} of String => Field
Constructors
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
-
#inspect(io : IO)
Appends this struct's name and instance variables names and values to the given IO.
- #time
- #to_hash
- #to_json(io : IO)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
-
#to_s(io : IO)
Same as
#inspect(io)
. - #value : String
- #value=(value : String)
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)"