Sha256: 4c266b3b1367b8d5161d5533c249876881881261b82f739671edb308694f527c
Contents?: true
Size: 637 Bytes
Versions: 1
Compression:
Stored size: 637 Bytes
Contents
class RobotToTest def initialize(human_name, _cv) @name = robot_name(human_name) end def robot_name(human_name) "#{self.class.prefix}_#{human_name}" end def cv { planets: planets } end def nested_fun_objects(_fun_objects) 'It was fun' end def self.prefix 'Robot' end private def planets ['Mars', Human.home] end def fun_objects [%i[array in array], { hash: nested_hash }] end def nested_hash { in_hash: { in: array } } end def array %w[array] end end class Human def initialize human_name = 'Emiliano' end def self.home 'Earth' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zapata-1.0.0 | spec/support/rails_test_app/app/models/robot_to_test.rb |