GPhoto2::CameraWidget::Base
Inherits GPhoto2::Struct / Reference / Object
Represents a widget.
Constructors
Instance methods
==(other)
Compares #value with given other using #to_s.
camera[:whitebalance] == "Automatic"
camera[:shutterspeed] == 0.5
camera[:iso] == 400
flatten(map = {} of String => Base) : Hash(String, Base)
Returns flat structure of widget #children.
in?(other : ::Range)
Returns true if #value is included in the other ::Range.
camera[:exposurecompensation].in? -1.6..0.6
camera[:aperture].in? 4..7.1
camera[:iso].in? 100..400
in?(other : Enumerable)
Returns true if #value matches at least one element of the collection.
camera[:autoexposuremode].in? %w(Manual Bulb)
to_s(io : IO)
Returns string representation of the widget #value.
puts camera[:whitebalance].to_s # => "Automatic"
value?
Returns widget value unless it's empty or is known to be
an empty string, like none or raises NotImplementedError.