class Cradare2::Util::ScriptBuilder

Overview

Fluent generator for radare2 configuration (.rc) scripts and command macros.

Defined in:

cradare2/util/script_builder.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(header : String = "Auto-generated radare2 script") #

[View source]

Instance Method Detail

def arch(name : String) : self #

[View source]
def bits(val : Int32) : self #

[View source]
def command(raw_cmd : String) : self #

[View source]
def comment(text : String) : self #

[View source]
def cpu(name : String) : self #

[View source]
def eval(key : String, value : String) : self #

[View source]
def flag(name : String, address : Address, comment : String | Nil = nil) : self #

[View source]
def format(name : String, fmt_string : String) : self #

[View source]
def macro(name : String, body : String) : self #

[View source]
def save(path : String) : Nil #

[View source]
def section(title : String) : self #

[View source]
def target(path : String) : self #

[View source]
def to_s(io : IO) : Nil #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]
def to_s : String #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]