Class: TestModule::TestSlimWithArguments

Inherits:
Object
  • Object
show all
Defined in:
lib/test_module/test_slim_with_arguments.rb

Instance Method Summary collapse

Constructor Details

#initialize(arg) ⇒ TestSlimWithArguments

Returns a new instance of TestSlimWithArguments.



3
4
5
# File 'lib/test_module/test_slim_with_arguments.rb', line 3

def initialize(arg)
  @arg = arg
end

Instance Method Details

#addrObject



15
16
17
# File 'lib/test_module/test_slim_with_arguments.rb', line 15

def addr
  @arg[:addr]
end

#argObject



7
8
9
# File 'lib/test_module/test_slim_with_arguments.rb', line 7

def arg
  @arg
end

#nameObject



11
12
13
# File 'lib/test_module/test_slim_with_arguments.rb', line 11

def name
  @arg[:name]
end

#set_arg(hash) ⇒ Object



19
20
21
# File 'lib/test_module/test_slim_with_arguments.rb', line 19

def set_arg(hash)
  @arg = hash
end