struct
Opal::Asciicast::Header
- Opal::Asciicast::Header
- Struct
- Value
- Object
Overview
Represents the Asciinema v2 file header (Line 1 of a .cast recording). Spec: https://github.com/asciinema/asciinema/blob/develop/doc/asciicast-v2.md
Included Modules
- JSON::Serializable
Defined in:
opal/asciicast/header.crConstructors
- .new(pull : JSON::PullParser)
- .new(width : Int32 = 80, height : Int32 = 24, title : String | Nil = nil, timestamp : Int64 = Time.utc.to_unix, term : String = "xterm-256color", shell : String = "/bin/bash", theme : Hash(String, String) | Nil = nil, idle_time_limit : Float64 | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
- #env : Hash(String, String) | Nil
- #env=(env : Hash(String, String) | Nil)
- #height : Int32
- #height=(height : Int32)
- #idle_time_limit : Float64 | Nil
- #idle_time_limit=(idle_time_limit : Float64 | Nil)
- #theme : Hash(String, String) | Nil
- #theme=(theme : Hash(String, String) | Nil)
- #timestamp : Int64
- #timestamp=(timestamp : Int64)
- #title : String | Nil
- #title=(title : String | Nil)
- #version : Int32
- #version=(version : Int32)
- #width : Int32
- #width=(width : Int32)
Constructor Detail
def self.new(width : Int32 = 80, height : Int32 = 24, title : String | Nil = nil, timestamp : Int64 = Time.utc.to_unix, term : String = "xterm-256color", shell : String = "/bin/bash", theme : Hash(String, String) | Nil = nil, idle_time_limit : Float64 | Nil = nil)
#