Class: Extension::Models::Specifications

Inherits:
Object
  • Object
show all
Includes:
SmartProperties
Defined in:
lib/project_types/extension/models/specifications.rb

Instance Method Summary collapse

Instance Method Details

#[](identifier) ⇒ Object



17
18
19
# File 'lib/project_types/extension/models/specifications.rb', line 17

def [](identifier)
  handlers[identifier]
end

#each(&block) ⇒ Object



25
26
27
# File 'lib/project_types/extension/models/specifications.rb', line 25

def each(&block)
  handlers.values.each(&block)
end

#none?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/project_types/extension/models/specifications.rb', line 29

def none?
  each.none?
end

#valid?(identifier) ⇒ Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/project_types/extension/models/specifications.rb', line 21

def valid?(identifier)
  handlers.key?(identifier)
end