Class: Rbnotes::Commands::Commands::CmdNames
- Inherits:
-
Object
- Object
- Rbnotes::Commands::Commands::CmdNames
- Defined in:
- lib/rbnotes/commands/commands.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
Instance Method Summary collapse
-
#initialize(cmd) ⇒ CmdNames
constructor
A new instance of CmdNames.
Constructor Details
#initialize(cmd) ⇒ CmdNames
Returns a new instance of CmdNames.
96 97 98 99 100 |
# File 'lib/rbnotes/commands/commands.rb', line 96 def initialize(cmd) @symbol = cmd @name = cmd.to_s.downcase @size = name.size end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
95 96 97 |
# File 'lib/rbnotes/commands/commands.rb', line 95 def name @name end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
95 96 97 |
# File 'lib/rbnotes/commands/commands.rb', line 95 def size @size end |
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol.
95 96 97 |
# File 'lib/rbnotes/commands/commands.rb', line 95 def symbol @symbol end |