Class: Batali::UnitDependency
- Inherits:
-
Grimoire::DEPENDENCY_CLASS
- Object
- Grimoire::DEPENDENCY_CLASS
- Batali::UnitDependency
- Defined in:
- lib/batali/monkey.rb
Instance Method Summary collapse
Instance Method Details
#to_json(*args) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/batali/monkey.rb', line 9 def to_json(*args) result = [ name, *requirement.requirements.map do |req| req.join(' ') end ] MultiJson.dump(result, *args) end |