class Marten::Template::Value
- Marten::Template::Value
- Reference
- Object
Overview
A template value.
Included Modules
- Comparable(Marten::Template::Value)
- Enumerable(Marten::Template::Value)
Defined in:
marten/template/value.crConstructors
Class Method Summary
Instance Method Summary
- #<=>(other : Value)
- #==(other : Value)
-
#==(other)
Returns
false
(other can only be aValue
here). - #[](key : String) : Value
-
#each(&)
Must yield this collection's elements to the block.
-
#empty?
Returns
true
if the value is empty. -
#raw : Array(Marten::Template::Value) | Bool | File | Float32 | Float64 | Hash(Marten::Template::Value, Marten::Template::Value) | Int32 | Int64 | Iterator(Marten::Template::Value) | JSON::Any | JSON::Serializable | Marten::HTTP::UploadedFile | Marten::Handlers::Base | Marten::Schema | Marten::Schema::BoundField | Marten::Schema::Field::Base | Marten::Template::Object | Marten::Template::SafeString | String | Symbol | Time | Time::Span | UUID | Nil
Returns the raw value associated with the template value.
-
#truthy?
Returns
true
if the value is truthy (ie.
Constructor Detail
Class Method Detail
Instance Method Detail
def ==(other)
#
Description copied from class Reference
Returns false
(other can only be a Value
here).
def each(&)
#
Description copied from module Enumerable(Marten::Template::Value)
Must yield this collection's elements to the block.
def raw : Array(Marten::Template::Value) | Bool | File | Float32 | Float64 | Hash(Marten::Template::Value, Marten::Template::Value) | Int32 | Int64 | Iterator(Marten::Template::Value) | JSON::Any | JSON::Serializable | Marten::HTTP::UploadedFile | Marten::Handlers::Base | Marten::Schema | Marten::Schema::BoundField | Marten::Schema::Field::Base | Marten::Template::Object | Marten::Template::SafeString | String | Symbol | Time | Time::Span | UUID | Nil
#
Returns the raw value associated with the template value.