struct Admiral::StringValue
- Admiral::StringValue
- Struct
- Value
- Object
Overview
A wrapper for arguments passed to Admiral::Command.run
All methods are delegated to String
.
Defined in:
admiral/string_value.crConstructors
Instance Method Summary
- #%(*args, **options)
- #%(*args, **options, &)
- #*(*args, **options)
- #*(*args, **options, &)
- #+(*args, **options)
- #+(*args, **options, &)
- #<=>(*args, **options)
- #<=>(*args, **options, &)
-
#==(arg)
Returns
true
if this struct is equal to other. - #=~(*args, **options)
- #=~(*args, **options, &)
- #[](*args, **options)
- #[](*args, **options, &)
- #[]?(*args, **options)
- #[]?(*args, **options, &)
- #ascii_only?(*args, **options)
- #ascii_only?(*args, **options, &)
- #blank?(*args, **options)
- #blank?(*args, **options, &)
- #byte_at(*args, **options)
- #byte_at(*args, **options, &)
- #byte_at?(*args, **options)
- #byte_at?(*args, **options, &)
- #byte_delete_at(*args, **options)
- #byte_delete_at(*args, **options, &)
- #byte_index(*args, **options)
- #byte_index(*args, **options, &)
- #byte_index_to_char_index(*args, **options)
- #byte_index_to_char_index(*args, **options, &)
- #byte_slice(*args, **options)
- #byte_slice(*args, **options, &)
- #byte_slice?(*args, **options)
- #byte_slice?(*args, **options, &)
- #bytes(*args, **options)
- #bytes(*args, **options, &)
- #bytesize(*args, **options)
- #bytesize(*args, **options, &)
- #calc_excess_left(*args, **options)
- #calc_excess_left(*args, **options, &)
- #calc_excess_right(*args, **options)
- #calc_excess_right(*args, **options, &)
- #camelcase(*args, **options)
- #camelcase(*args, **options, &)
- #capitalize(*args, **options)
- #capitalize(*args, **options, &)
- #center(*args, **options)
- #center(*args, **options, &)
- #char_at(*args, **options)
- #char_at(*args, **options, &)
- #char_bytesize_at(*args, **options)
- #char_bytesize_at(*args, **options, &)
- #char_index_to_byte_index(*args, **options)
- #char_index_to_byte_index(*args, **options, &)
- #chars(*args, **options)
- #chars(*args, **options, &)
- #check_no_null_byte(*args, **options)
- #check_no_null_byte(*args, **options, &)
- #chomp(*args, **options)
- #chomp(*args, **options, &)
- #clone(*args, **options)
- #clone(*args, **options, &)
- #codepoint_at(*args, **options)
- #codepoint_at(*args, **options, &)
- #codepoints(*args, **options)
- #codepoints(*args, **options, &)
- #compare(*args, **options)
- #compare(*args, **options, &)
- #count(*args, **options)
- #count(*args, **options, &)
- #delete(*args, **options)
- #delete(*args, **options, &)
- #delete_at(*args, **options)
- #delete_at(*args, **options, &)
- #do_unicode_normalize(*args, **options)
- #do_unicode_normalize(*args, **options, &)
- #downcase(*args, **options)
- #downcase(*args, **options, &)
- #dump(*args, **options)
- #dump(*args, **options, &)
- #dump_char(*args, **options)
- #dump_char(*args, **options, &)
- #dump_hex(*args, **options)
- #dump_hex(*args, **options, &)
- #dump_or_inspect(*args, **options)
- #dump_or_inspect(*args, **options, &)
- #dump_or_inspect_char(*args, **options)
- #dump_or_inspect_char(*args, **options, &)
- #dump_or_inspect_unquoted(*args, **options)
- #dump_or_inspect_unquoted(*args, **options, &)
- #dump_unquoted(*args, **options)
- #dump_unquoted(*args, **options, &)
- #dup(*args, **options)
- #dup(*args, **options, &)
- #each_byte(*args, **options)
- #each_byte(*args, **options, &)
- #each_byte_index_and_char_index(*args, **options)
- #each_byte_index_and_char_index(*args, **options, &)
- #each_char(*args, **options)
- #each_char(*args, **options, &)
- #each_char_with_index(*args, **options)
- #each_char_with_index(*args, **options, &)
- #each_codepoint(*args, **options)
- #each_codepoint(*args, **options, &)
- #each_grapheme(*args, **options)
- #each_grapheme(*args, **options, &)
- #each_grapheme_boundary(*args, **options)
- #each_grapheme_boundary(*args, **options, &)
- #each_line(*args, **options)
- #each_line(*args, **options, &)
- #empty?(*args, **options)
- #empty?(*args, **options, &)
- #encode(*args, **options)
- #encode(*args, **options, &)
- #ends_with?(*args, **options)
- #ends_with?(*args, **options, &)
- #find_start_and_end(*args, **options)
- #find_start_and_end(*args, **options, &)
- #grapheme_size(*args, **options)
- #grapheme_size(*args, **options, &)
- #graphemes(*args, **options)
- #graphemes(*args, **options, &)
- #gsub(*args, **options)
- #gsub(*args, **options, &)
- #gsub_append(*args, **options)
- #gsub_append(*args, **options, &)
- #gsub_ascii_char(*args, **options)
- #gsub_ascii_char(*args, **options, &)
- #has_back_references?(*args, **options)
- #has_back_references?(*args, **options, &)
- #hash(*args, **options)
- #hash(*args, **options, &)
- #hexbytes(*args, **options)
- #hexbytes(*args, **options, &)
- #hexbytes?(*args, **options)
- #hexbytes?(*args, **options, &)
- #includes?(*args, **options)
- #includes?(*args, **options, &)
- #index(*args, **options)
- #index(*args, **options, &)
- #index!(*args, **options)
- #index!(*args, **options, &)
- #initialize_header(*args, **options)
- #initialize_header(*args, **options, &)
- #insert(*args, **options)
- #insert(*args, **options, &)
- #insert_impl(*args, **options)
- #insert_impl(*args, **options, &)
- #inspect(*args, **options)
- #inspect(*args, **options, &)
- #inspect_char(*args, **options)
- #inspect_char(*args, **options, &)
- #inspect_unquoted(*args, **options)
- #inspect_unquoted(*args, **options, &)
- #just(*args, **options)
- #just(*args, **options, &)
- #lchop(*args, **options)
- #lchop(*args, **options, &)
- #lchop?(*args, **options)
- #lchop?(*args, **options, &)
- #lines(*args, **options)
- #lines(*args, **options, &)
- #ljust(*args, **options)
- #ljust(*args, **options, &)
- #lstrip(*args, **options)
- #lstrip(*args, **options, &)
- #match(*args, **options)
- #match(*args, **options, &)
- #match!(*args, **options)
- #match!(*args, **options, &)
- #matches?(*args, **options)
- #matches?(*args, **options, &)
- #partition(*args, **options)
- #partition(*args, **options, &)
- #presence(*args, **options)
- #presence(*args, **options, &)
- #pretty_print(*args, **options)
- #pretty_print(*args, **options, &)
- #rchop(*args, **options)
- #rchop(*args, **options, &)
- #rchop?(*args, **options)
- #rchop?(*args, **options, &)
- #remove_excess(*args, **options)
- #remove_excess(*args, **options, &)
- #remove_excess_left(*args, **options)
- #remove_excess_left(*args, **options, &)
- #remove_excess_right(*args, **options)
- #remove_excess_right(*args, **options, &)
- #reverse(*args, **options)
- #reverse(*args, **options, &)
- #rindex(*args, **options)
- #rindex(*args, **options, &)
- #rindex!(*args, **options)
- #rindex!(*args, **options, &)
- #rjust(*args, **options)
- #rjust(*args, **options, &)
- #rpartition(*args, **options)
- #rpartition(*args, **options, &)
- #rstrip(*args, **options)
- #rstrip(*args, **options, &)
- #scan(*args, **options)
- #scan(*args, **options, &)
- #scan_backreferences(*args, **options)
- #scan_backreferences(*args, **options, &)
- #scrub(*args, **options)
- #scrub(*args, **options, &)
- #single_byte_optimizable?(*args, **options)
- #single_byte_optimizable?(*args, **options, &)
- #size(*args, **options)
- #size(*args, **options, &)
- #size_known?(*args, **options)
- #size_known?(*args, **options, &)
- #split(*args, **options)
- #split(*args, **options, &)
- #split_by_empty_separator(*args, **options)
- #split_by_empty_separator(*args, **options, &)
- #split_single_byte(*args, **options)
- #split_single_byte(*args, **options, &)
- #squeeze(*args, **options)
- #squeeze(*args, **options, &)
- #starts_with?(*args, **options)
- #starts_with?(*args, **options, &)
- #strip(*args, **options)
- #strip(*args, **options, &)
- #sub(*args, **options)
- #sub(*args, **options, &)
- #sub_append(*args, **options)
- #sub_append(*args, **options, &)
- #sub_index(*args, **options)
- #sub_index(*args, **options, &)
- #sub_range(*args, **options)
- #sub_range(*args, **options, &)
- #succ(*args, **options)
- #succ(*args, **options, &)
- #titleize(*args, **options)
- #titleize(*args, **options, &)
- #to_f(*args, **options)
- #to_f(*args, **options, &)
- #to_f32(*args, **options)
- #to_f32(*args, **options, &)
- #to_f32?(*args, **options)
- #to_f32?(*args, **options, &)
- #to_f64(*args, **options)
- #to_f64(*args, **options, &)
- #to_f64?(*args, **options)
- #to_f64?(*args, **options, &)
- #to_f?(*args, **options)
- #to_f?(*args, **options, &)
- #to_f_impl(*args, **options)
- #to_f_impl(*args, **options, &)
- #to_i(*args, **options)
- #to_i(*args, **options, &)
- #to_i128(*args, **options)
- #to_i128(*args, **options, &)
- #to_i128?(*args, **options)
- #to_i128?(*args, **options, &)
- #to_i16(*args, **options)
- #to_i16(*args, **options, &)
- #to_i16?(*args, **options)
- #to_i16?(*args, **options, &)
- #to_i32(*args, **options)
- #to_i32(*args, **options, &)
- #to_i32?(*args, **options)
- #to_i32?(*args, **options, &)
- #to_i64(*args, **options)
- #to_i64(*args, **options, &)
- #to_i64?(*args, **options)
- #to_i64?(*args, **options, &)
- #to_i8(*args, **options)
- #to_i8(*args, **options, &)
- #to_i8?(*args, **options)
- #to_i8?(*args, **options, &)
- #to_i?(*args, **options)
- #to_i?(*args, **options, &)
- #to_s(*args, **options)
- #to_s(*args, **options, &)
- #to_slice(*args, **options)
- #to_slice(*args, **options, &)
- #to_u128(*args, **options)
- #to_u128(*args, **options, &)
- #to_u128?(*args, **options)
- #to_u128?(*args, **options, &)
- #to_u16(*args, **options)
- #to_u16(*args, **options, &)
- #to_u16?(*args, **options)
- #to_u16?(*args, **options, &)
- #to_u32(*args, **options)
- #to_u32(*args, **options, &)
- #to_u32?(*args, **options)
- #to_u32?(*args, **options, &)
- #to_u64(*args, **options)
- #to_u64(*args, **options, &)
- #to_u64?(*args, **options)
- #to_u64?(*args, **options, &)
- #to_u8(*args, **options)
- #to_u8(*args, **options, &)
- #to_u8?(*args, **options)
- #to_u8?(*args, **options, &)
- #to_unsafe(*args, **options)
- #to_unsafe(*args, **options, &)
- #to_unsigned_info(*args, **options)
- #to_unsigned_info(*args, **options, &)
- #to_utf16(*args, **options)
- #to_utf16(*args, **options, &)
- #tr(*args, **options)
- #tr(*args, **options, &)
- #underscore(*args, **options)
- #underscore(*args, **options, &)
- #unicode_delete_at(*args, **options)
- #unicode_delete_at(*args, **options, &)
- #unicode_normalize(*args, **options)
- #unicode_normalize(*args, **options, &)
- #unicode_normalized?(*args, **options)
- #unicode_normalized?(*args, **options, &)
- #unsafe_byte_at(*args, **options)
- #unsafe_byte_at(*args, **options, &)
- #unsafe_byte_slice(*args, **options)
- #unsafe_byte_slice(*args, **options, &)
- #unsafe_byte_slice_string(*args, **options)
- #unsafe_byte_slice_string(*args, **options, &)
- #upcase(*args, **options)
- #upcase(*args, **options, &)
- #valid_encoding?(*args, **options)
- #valid_encoding?(*args, **options, &)
- #value : String
Constructor Detail
Instance Method Detail
def ==(arg)
#
Description copied from struct Struct
Returns true
if this struct is equal to other.
Both structs' instance vars are compared to each other. Thus, two structs are considered equal if each of their instance variables are equal. Subclasses should override this method to provide specific equality semantics.
struct Point
def initialize(@x : Int32, @y : Int32)
end
end
p1 = Point.new 1, 2
p2 = Point.new 1, 2
p3 = Point.new 3, 4
p1 == p2 # => true
p1 == p3 # => false