struct Shatter::Data::Entity::Property
- Shatter::Data::Entity::Property
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
shatter/data/entity.crConstructors
- .from_io(io : IO) : Property
- .new(key : String, value : Float64, modifiers : Array(Modifier))
- .new(pull : JSON::PullParser)
Instance Method Summary
- #clone
- #copy_with(key _key = @key, value _value = @value, modifiers _modifiers = @modifiers)
-
#inspect(io : IO)
Appends this struct's name and instance variables names and values to the given IO.
- #key : String
- #modifiers : Array(Modifier)
- #value : Float64
Constructor Detail
Instance Method Detail
def copy_with(key _key = @key, value _value = @value, modifiers _modifiers = @modifiers)
#
Description copied from struct Struct
Appends this struct's name and instance variables names and values to the given IO.
struct Point
def initialize(@x : Int32, @y : Int32)
end
end
p1 = Point.new 1, 2
p1.to_s # "Point(@x=1, @y=2)"
p1.inspect # "Point(@x=1, @y=2)"