Class: DMap::Validations::Key

Inherits:
Object
  • Object
show all
Defined in:
lib/dmap/validations/misc.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#propertyObject

Returns the value of attribute property.



4
5
6
# File 'lib/dmap/validations/misc.rb', line 4

def property
  @property
end

Class Method Details

.is_valid?(command = nil) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
11
# File 'lib/dmap/validations/misc.rb', line 8

def self.is_valid?(command=nil)
  command ||= "true"
  (command == "true" or command == "false")
end

.propertyObject



6
# File 'lib/dmap/validations/misc.rb', line 6

def self.property; true; end

.validate(command = nil) ⇒ Object



13
14
15
# File 'lib/dmap/validations/misc.rb', line 13

def self.validate(command=nil)
  true
end