Class: SlideField::ObjectRules::Debug

Inherits:
Base
  • Object
show all
Defined in:
lib/slidefield/objects/debug.rb

Instance Method Summary collapse

Methods inherited from Base

#accepted_children, #default_value, get, #initialize, #matching_properties, #optional_properties, #properties_names, #properties_types, #required_properties, #requirements_of_child, #type_of_property

Constructor Details

This class inherits a constructor from SlideField::ObjectRules::Base

Instance Method Details

#rulesObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/slidefield/objects/debug.rb', line 3

def rules
  # hack
  # `thing = 10x10` or anything but an integer will raise an error
  # however `\debug 10x10` works as expected

  property :thing, :integer
  property :thing, :string
  property :thing, :point
  property :thing, :color
  property :thing, :boolean
  property :thing, :object

  # don't call super
end