Class: Swarker::Readers::DefinitionsReader

Inherits:
Object
  • Object
show all
Defined in:
lib/swarker/readers/definitions_reader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dir) ⇒ DefinitionsReader

Returns a new instance of DefinitionsReader.



8
9
10
# File 'lib/swarker/readers/definitions_reader.rb', line 8

def initialize(dir)
  @definitions = read_definitions(dir)
end

Instance Attribute Details

#definitionsObject (readonly)

Returns the value of attribute definitions.



6
7
8
# File 'lib/swarker/readers/definitions_reader.rb', line 6

def definitions
  @definitions
end