Class: T90X::Move

Inherits:
Object
  • Object
show all
Defined in:
lib/t90x/move.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ Move

Returns a new instance of Move.



7
8
9
10
11
# File 'lib/t90x/move.rb', line 7

def initialize(name, options = {})
  @name = name
  @weight = options[:weight] || false
  @break = options[:break] || false
end

Instance Attribute Details

#breakObject (readonly)

Returns the value of attribute break.



3
4
5
# File 'lib/t90x/move.rb', line 3

def break
  @break
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/t90x/move.rb', line 4

def name
  @name
end

#weightObject (readonly)

Returns the value of attribute weight.



5
6
7
# File 'lib/t90x/move.rb', line 5

def weight
  @weight
end

Instance Method Details

#break?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/t90x/move.rb', line 17

def break?
  @break
end

#weight?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/t90x/move.rb', line 13

def weight?
  @weight
end