Class: Cleon::Param

Inherits:
Object
  • Object
show all
Defined in:
lib/cleon/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Param

Returns a new instance of Param.


11
12
13
# File 'lib/cleon/model.rb', line 11

def initialize(name)
  @name, @guard = name.split(':')
end

Instance Attribute Details

#guardObject (readonly)

Returns the value of attribute guard.


9
10
11
# File 'lib/cleon/model.rb', line 9

def guard
  @guard
end

#nameObject (readonly)

Returns the value of attribute name.


8
9
10
# File 'lib/cleon/model.rb', line 8

def name
  @name
end