Class: Rapa::Language

Inherits:
Object
  • Object
show all
Defined in:
lib/rapa/language.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ Language

Returns a new instance of Language.

Parameters:

  • source (Hash)


7
8
9
# File 'lib/rapa/language.rb', line 7

def initialize(source)
  @source = source
end

Instance Attribute Details

#sourceHash (readonly)

Returns:

  • (Hash)


4
5
6
# File 'lib/rapa/language.rb', line 4

def source
  @source
end

Instance Method Details

#nameString

Returns:

  • (String)


12
13
14
# File 'lib/rapa/language.rb', line 12

def name
  source["Name"]
end

#typeString

Returns:

  • (String)


17
18
19
# File 'lib/rapa/language.rb', line 17

def type
  source["Type"]
end