Class: TestModule::TestSlimWithArguments
- Inherits:
-
Object
- Object
- TestModule::TestSlimWithArguments
- Defined in:
- lib/test_module/test_slim_with_arguments.rb
Instance Method Summary collapse
- #addr ⇒ Object
- #arg ⇒ Object
-
#initialize(arg) ⇒ TestSlimWithArguments
constructor
A new instance of TestSlimWithArguments.
- #name ⇒ Object
- #set_arg(hash) ⇒ Object
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
#addr ⇒ Object
15 16 17 |
# File 'lib/test_module/test_slim_with_arguments.rb', line 15 def addr @arg[:addr] end |
#arg ⇒ Object
7 8 9 |
# File 'lib/test_module/test_slim_with_arguments.rb', line 7 def arg @arg end |
#name ⇒ Object
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 |