class
MPD::Filter
- MPD::Filter
- Reference
- Object
Defined in:
crystal_mpd/filter.crConstructors
- .eq(tag : String, value : String) : Filter
- .eq(tag : Tag, value : String) : Filter
- .match(tag : String, value : String) : Filter
- .match(tag : Tag, value : String) : Filter
- .new
- .not_eq(tag : String, value : String) : Filter
- .not_eq(tag : Tag, value : String) : Filter
- .not_match(tag : String, value : String) : Filter
- .not_match(tag : Tag, value : String) : Filter
Class Method Summary
- .contains(tag : String, value : String)
- .contains(tag : Tag, value : String)
- .contains_ci(tag : String, value : String)
- .contains_ci(tag : Tag, value : String)
- .contains_cs(tag : String, value : String)
- .contains_cs(tag : Tag, value : String)
- .eq_ci(tag : String, value : String)
- .eq_ci(tag : Tag, value : String)
- .eq_cs(tag : String, value : String)
- .eq_cs(tag : Tag, value : String)
- .not(expr : Filter)
- .not_contains(tag : String, value : String)
- .not_contains(tag : Tag, value : String)
- .not_contains_ci(tag : String, value : String)
- .not_contains_ci(tag : Tag, value : String)
- .not_contains_cs(tag : String, value : String)
- .not_contains_cs(tag : Tag, value : String)
- .not_eq_ci(tag : String, value : String)
- .not_eq_ci(tag : Tag, value : String)
- .not_eq_cs(tag : String, value : String)
- .not_eq_cs(tag : Tag, value : String)
- .not_starts_with(tag : String, value : String)
- .not_starts_with(tag : Tag, value : String)
- .not_starts_with_ci(tag : String, value : String)
- .not_starts_with_ci(tag : Tag, value : String)
- .not_starts_with_cs(tag : String, value : String)
- .not_starts_with_cs(tag : Tag, value : String)
- .starts_with(tag : String, value : String)
- .starts_with(tag : Tag, value : String)
- .starts_with_ci(tag : String, value : String)
- .starts_with_ci(tag : Tag, value : String)
- .starts_with_cs(tag : String, value : String)
- .starts_with_cs(tag : Tag, value : String)
Instance Method Summary
- #contains(tag : String, value : String)
- #contains(tag : Tag, value : String)
- #contains_ci(tag : String, value : String)
- #contains_ci(tag : Tag, value : String)
- #contains_cs(tag : String, value : String)
- #contains_cs(tag : Tag, value : String)
- #eq(tag : String, value : String)
- #eq(tag : Tag, value : String)
- #eq_ci(tag : String, value : String)
- #eq_ci(tag : Tag, value : String)
- #eq_cs(tag : String, value : String)
- #eq_cs(tag : Tag, value : String)
- #match(tag : String, value : String)
- #match(tag : Tag, value : String)
-
#not(expr : Filter)
Logical NOT for nested filters
- #not_contains(tag : String, value : String)
- #not_contains(tag : Tag, value : String)
- #not_contains_ci(tag : String, value : String)
- #not_contains_ci(tag : Tag, value : String)
- #not_contains_cs(tag : String, value : String)
- #not_contains_cs(tag : Tag, value : String)
- #not_eq(tag : String, value : String)
- #not_eq(tag : Tag, value : String)
- #not_eq_ci(tag : String, value : String)
- #not_eq_ci(tag : Tag, value : String)
- #not_eq_cs(tag : String, value : String)
- #not_eq_cs(tag : Tag, value : String)
- #not_match(tag : String, value : String)
- #not_match(tag : Tag, value : String)
- #not_starts_with(tag : String, value : String)
- #not_starts_with(tag : Tag, value : String)
- #not_starts_with_ci(tag : String, value : String)
- #not_starts_with_ci(tag : Tag, value : String)
- #not_starts_with_cs(tag : String, value : String)
- #not_starts_with_cs(tag : Tag, value : String)
-
#sort(tag : String)
sorts the result by the specified tag
-
#sort(tag : MPD::Tag)
sorts the result by the specified tag
- #sort : String | Nil
- #starts_with(tag : String, value : String)
- #starts_with(tag : Tag, value : String)
- #starts_with_ci(tag : String, value : String)
- #starts_with_ci(tag : Tag, value : String)
- #starts_with_cs(tag : String, value : String)
- #starts_with_cs(tag : Tag, value : String)
-
#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.
-
#window(range : MPD::Range)
can be used to query only a portion of the real response
- #window : MPD::Range | Nil
Constructor Detail
Class Method 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
.