class
Cradare2::Util::ScriptBuilder
- Cradare2::Util::ScriptBuilder
- Reference
- Object
Overview
Fluent generator for radare2 configuration (.rc) scripts and command macros.
Defined in:
cradare2/util/script_builder.crConstructors
Instance Method Summary
- #arch(name : String) : self
- #bits(val : Int32) : self
- #command(raw_cmd : String) : self
- #comment(text : String) : self
- #cpu(name : String) : self
- #eval(key : String, value : String) : self
- #flag(name : String, address : Address, comment : String | Nil = nil) : self
- #format(name : String, fmt_string : String) : self
- #macro(name : String, body : String) : self
- #save(path : String) : Nil
- #section(title : String) : self
- #target(path : String) : self
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
-
#to_s : String
Returns a nicely readable and concise string representation of this object, typically intended for users.
Constructor Detail
Instance Method Detail
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>
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.